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

Function setcharselector

numpy/f2py/crackfortran.py:1961–1973  ·  view source on GitHub ↗
(decl, sel, force=0)

Source from the content-addressed store, hash-verified

1959
1960
1961def setcharselector(decl, sel, force=0):
1962 if not decl:
1963 decl = {}
1964 if not sel:
1965 return decl
1966 if 'charselector' not in decl:
1967 decl['charselector'] = sel
1968 return decl
1969
1970 for k in list(sel.keys()):
1971 if force or k not in decl['charselector']:
1972 decl['charselector'][k] = sel[k]
1973 return decl
1974
1975
1976def getblockname(block, unknown='unknown'):

Callers 1

appenddeclFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected