hpcflow.sdk.persistence.zarr.ZarrStoreElement#
- class hpcflow.sdk.persistence.zarr.ZarrStoreElement(id_, is_pending, index, es_idx, seq_idx, src_idx, task_ID, iteration_IDs)#
Bases:
StoreElement
[list[Any]
,dict[str, list[str]]
]Represents an element in a Zarr persistent store.
Methods
Return a copy, with additional iteration IDs.
Initialise a StoreElement from persistent element data
Prepare store elements data for the persistent store.
Prepare data for the user-facing Element object.
Attributes
The ID of the element.
Whether the element has changes not yet persisted.
Index of the element within its parent task.
Index of the element set containing this element.
Value sequence index map.
Data source index map.
ID of the task that contains this element.
IDs of element-iterations that belong to this element.
- Parameters:
- append_iteration_IDs(pend_IDs)#
Return a copy, with additional iteration IDs.
- Parameters:
pend_IDs (Iterable[int]) –
- Return type:
Self
- classmethod decode(elem_dat, attrs)#
Initialise a StoreElement from persistent element data
- Parameters:
elem_dat (ListAny) –
attrs (ZarrAttrs) –
- Return type:
Self
- encode(attrs)#
Prepare store elements data for the persistent store.
This method mutates attrs.