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

Function cb_sign2map

numpy/f2py/capi_maps.py:699–714  ·  view source on GitHub ↗
(a, var, index=None)

Source from the content-addressed store, hash-verified

697
698
699def cb_sign2map(a, var, index=None):
700 ret = {'varname': a}
701 ret['varname_i'] = ret['varname']
702 ret['ctype'] = getctype(var)
703 if ret['ctype'] in c2capi_map:
704 ret['atype'] = c2capi_map[ret['ctype']]
705 ret['elsize'] = get_elsize(var)
706 if ret['ctype'] in cformat_map:
707 ret['showvalueformat'] = '%s' % (cformat_map[ret['ctype']])
708 if isarray(var):
709 ret = dictappend(ret, getarrdims(a, var))
710 ret['pydocsign'], ret['pydocsignout'] = getpydocsign(a, var)
711 if hasnote(var):
712 ret['note'] = var['note']
713 var['note'] = ['See elsewhere.']
714 return ret
715
716
717def cb_routsign2map(rout, um):

Callers

nothing calls this directly

Calls 7

getctypeFunction · 0.85
isarrayFunction · 0.85
dictappendFunction · 0.85
getarrdimsFunction · 0.85
getpydocsignFunction · 0.85
hasnoteFunction · 0.85
get_elsizeFunction · 0.70

Tested by

no test coverage detected