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
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.
- classmethod decode(elem_dat, attrs)#
Initialise a StoreElement from persistent element data
- Parameters:
- Return type:
- encode(attrs)#
Prepare store elements data for the persistent store.
This method mutates attrs.
- to_dict(iters)#
Prepare data for the user-facing Element object.