MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / get_fields

Method get_fields

dedalus/core/evaluator.py:183–192  ·  view source on GitHub ↗

Get field set for a collection of tasks.

(tasks)

Source from the content-addressed store, hash-verified

181
182 @staticmethod
183 def get_fields(tasks):
184 """Get field set for a collection of tasks."""
185 fields = OrderedSet()
186 for task in tasks:
187 fields.update(task['operator'].atoms(Field))
188 # Drop locked fields
189 locked = [f for f in fields if isinstance(f, LockedField)]
190 for field in locked:
191 fields.pop(field)
192 return fields
193
194 @staticmethod
195 def attempt_tasks(tasks, **kw):

Callers 1

evaluate_handlersMethod · 0.95

Calls 3

updateMethod · 0.95
OrderedSetClass · 0.85
atomsMethod · 0.45

Tested by

no test coverage detected