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

Function _get_depend_dict

numpy/f2py/crackfortran.py:2354–2373  ·  view source on GitHub ↗
(name, vars, deps)

Source from the content-addressed store, hash-verified

2352
2353
2354def _get_depend_dict(name, vars, deps):
2355 if name in vars:
2356 words = vars[name].get('depend', [])
2357
2358 if '=' in vars[name] and not isstring(vars[name]):
2359 for word in word_pattern.findall(vars[name]['=']):
2360 # The word_pattern may return values that are not
2361 # only variables, they can be string content for instance
2362 if word not in words and word in vars and word != name:
2363 words.append(word)
2364 for word in words[:]:
2365 for w in deps.get(word, []) \
2366 or _get_depend_dict(word, vars, deps):
2367 if w not in words:
2368 words.append(w)
2369 else:
2370 outmess(f'_get_depend_dict: no dependence info for {repr(name)}\n')
2371 words = []
2372 deps[name] = words
2373 return words
2374
2375
2376def _calc_depend_dict(vars):

Callers 1

_calc_depend_dictFunction · 0.85

Calls 3

isstringFunction · 0.85
outmessFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…