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

Function get_sorted_names

numpy/f2py/crackfortran.py:2384–2399  ·  view source on GitHub ↗
(vars)

Source from the content-addressed store, hash-verified

2382
2383
2384def get_sorted_names(vars):
2385 depend_dict = _calc_depend_dict(vars)
2386 names = []
2387 for name in list(depend_dict.keys()):
2388 if not depend_dict[name]:
2389 names.append(name)
2390 del depend_dict[name]
2391 while depend_dict:
2392 for name, lst in list(depend_dict.items()):
2393 new_lst = [n for n in lst if n in depend_dict]
2394 if not new_lst:
2395 names.append(name)
2396 del depend_dict[name]
2397 else:
2398 depend_dict[name] = new_lst
2399 return [name for name in names if name in vars]
2400
2401
2402def _kind_func(string):

Callers 1

get_parametersFunction · 0.85

Calls 3

_calc_depend_dictFunction · 0.85
itemsMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…