MCPcopy Create free account
hub / github.com/numpy/numpy / get_class

Function get_class

numpy/distutils/tests/test_system_info.py:27–38  ·  view source on GitHub ↗

notfound_action: 0 - do nothing 1 - display warning message 2 - raise error

(name, notfound_action=1)

Source from the content-addressed store, hash-verified

25
26
27def get_class(name, notfound_action=1):
28 """
29 notfound_action:
30 0 - do nothing
31 1 - display warning message
32 2 - raise error
33 """
34 cl = {'temp1': Temp1Info,
35 'temp2': Temp2Info,
36 'duplicate_options': DuplicateOptionInfo,
37 }.get(name.lower(), _system_info)
38 return cl()
39
40simple_site = """
41[ALL]

Callers 1

setup_methodMethod · 0.85

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected