hpcflow.sdk.core.cache.DependencyCache#
- class hpcflow.sdk.core.cache.DependencyCache(run_dependencies, run_dependents, iter_run_dependencies, iter_iter_dependencies, elem_iter_dependencies, elem_elem_dependencies, elem_elem_dependents, elem_elem_dependents_rec, elements, iterations)#
Bases:
object
Class to bulk-retrieve dependencies between elements, iterations, and runs.
Methods
Build a cache instance.
Attributes
What EARs (by ID) a given EAR depends on.
What EARs (by ID) are depending on a given EAR.
What EARs (by ID) a given iteration depends on.
What iterations (by ID) a given iteration depends on.
What iterations (by ID) a given element depends on.
What elements (by ID) a given element depends on.
What elements (by ID) are depending on a given element.
Transitive closure of
elem_elem_dependents
.The elements of the workflow that this cache was built from.
The iterations of the workflow that this cache was built from.
- Parameters:
iterations (list[ElementIteration]) –
- classmethod build(workflow)#
Build a cache instance.
- Parameters:
workflow (Workflow) – The workflow to build the cache from.
- Return type:
Self
- iterations: list[ElementIteration]#
The iterations of the workflow that this cache was built from.