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

Function fix_usage

numpy/f2py/crackfortran.py:3609–3613  ·  view source on GitHub ↗
(varname, value)

Source from the content-addressed store, hash-verified

3607 key, value = item
3608
3609 def fix_usage(varname, value):
3610 value = re.sub(r'[*]\s*\b' + varname + r'\b', varname, value)
3611 value = re.sub(r'\b' + varname + r'\b\s*[\[]\s*0\s*[\]]',
3612 varname, value)
3613 return value
3614
3615 if parent_key in ['dimension', 'check']:
3616 assert parents[-3][0] == 'vars'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…