hpcflow.sdk.persistence.base.StoreElementIter#
- class hpcflow.sdk.persistence.base.StoreElementIter(id_, is_pending, element_ID, EAR_IDs, data_idx, schema_parameters, loop_idx=<factory>)#
Bases:
object
- Parameters:
data_idx (Dict[str, int]) – Overall data index for the element-iteration, which maps parameter names to parameter data indices.
EAR_IDs (Dict[int, List[int]]) – Maps task schema action indices to EARs by ID.
schema_parameters (List[str]) – List of parameters defined by the associated task schema.
id_ (int) –
is_pending (bool) –
element_ID (int) –
Methods
Return a copy, with additional EAR IDs.
Initialise a StoreElementIter from persistent store element iteration data
Prepare store element iteration data for the persistent store.
Prepare data for the user-facing ElementIteration object.
Return a copy, with the loop index updated.
Attributes
- append_EAR_IDs(pend_IDs)#
Return a copy, with additional EAR IDs.
- classmethod decode(iter_dat)#
Initialise a StoreElementIter from persistent store element iteration data
- Parameters:
iter_dat (Dict) –
- Return type:
- to_dict(EARs)#
Prepare data for the user-facing ElementIteration object.