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

Function getdimension

numpy/f2py/auxfuncs.py:417–421  ·  view source on GitHub ↗
(var)

Source from the content-addressed store, hash-verified

415
416
417def getdimension(var):
418 dimpattern = r"\((.*?)\)"
419 if 'attrspec' in var.keys():
420 if any('dimension' in s for s in var['attrspec']):
421 return [re.findall(dimpattern, v) for v in var['attrspec']][0]
422
423
424def isrequired(var):

Callers 1

analyzelineFunction · 0.85

Calls 2

keysMethod · 0.80
anyFunction · 0.50

Tested by

no test coverage detected