MCPcopy Index your code
hub / github.com/numpy/numpy / modsign2map

Function modsign2map

numpy/f2py/capi_maps.py:665–693  ·  view source on GitHub ↗

modulename

(m)

Source from the content-addressed store, hash-verified

663
664
665def modsign2map(m):
666 """
667 modulename
668 """
669 if ismodule(m):
670 ret = {'f90modulename': m['name'],
671 'F90MODULENAME': m['name'].upper(),
672 'texf90modulename': m['name'].replace('_', '\\_')}
673 else:
674 ret = {'modulename': m['name'],
675 'MODULENAME': m['name'].upper(),
676 'texmodulename': m['name'].replace('_', '\\_')}
677 ret['restdoc'] = getrestdoc(m) or []
678 if hasnote(m):
679 ret['note'] = m['note']
680 ret['usercode'] = getusercode(m) or ''
681 ret['usercode1'] = getusercode1(m) or ''
682 if m['body']:
683 ret['interface_usercode'] = getusercode(m['body'][0]) or ''
684 else:
685 ret['interface_usercode'] = ''
686 ret['pymethoddef'] = getpymethoddef(m) or ''
687 if 'gil_used' in m:
688 ret['gil_used'] = m['gil_used']
689 if 'coutput' in m:
690 ret['coutput'] = m['coutput']
691 if 'f2py_wrapper_output' in m:
692 ret['f2py_wrapper_output'] = m['f2py_wrapper_output']
693 return ret
694
695
696def cb_sign2map(a, var, index=None):

Callers

nothing calls this directly

Calls 8

ismoduleFunction · 0.85
getrestdocFunction · 0.85
hasnoteFunction · 0.85
getusercodeFunction · 0.85
getusercode1Function · 0.85
getpymethoddefFunction · 0.85
upperMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…