Lines Matching full:functions
12 def __init__(self, functions, max_simultaneous_procs=20): argument
14 This takes in a dictionary of functions which map to a set of
15 functions that they depend on.
17 functions: This is either a list of or dictionary of functions to
19 of other functions this function is dependent on. If its
27 if not isinstance(functions, dict):
28 function_list = functions
29 functions = {}
31 functions[fn] = set()
34 for fn, deps in functions.iteritems():
36 for fn, deps in functions.iteritems():
41 self.functions = functions
48 self.functions.pop(function)
58 for fn, deps in self.functions.iteritems():
77 self.functions[dependent].remove(fn)
78 if len(self.functions[dependent]) == 0:
81 if len(self.functions) > 0 and len(errors) == 0: