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

Function get_f2py_modulename

numpy/distutils/command/build_src.py:761–771  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

759 r'__user__[\w_]*)', re.I).match
760
761def get_f2py_modulename(source):
762 name = None
763 with open(source) as f:
764 for line in f:
765 m = _f2py_module_name_match(line)
766 if m:
767 if _f2py_user_module_name_match(line): # skip *__user__* names
768 continue
769 name = m.group('name')
770 break
771 return name
772
773##########################################

Callers 1

f2py_sourcesMethod · 0.70

Calls 1

openFunction · 0.85

Tested by

no test coverage detected