hpcflow.sdk.persistence.zarr.ZarrStoreElement#

class hpcflow.sdk.persistence.zarr.ZarrStoreElement(id_: 'int', is_pending: 'bool', index: 'int', es_idx: 'int', seq_idx: 'Dict[str, int]', src_idx: 'Dict[str, int]', task_ID: 'int', iteration_IDs: 'List[int]')#

Bases: StoreElement

Methods

append_iteration_IDs

Return a copy, with additional iteration IDs.

decode

Initialise a StoreElement from persistent element data

encode

Prepare store elements data for the persistent store.

to_dict

Prepare data for the user-facing Element object.

Attributes

id_

is_pending

index

es_idx

seq_idx

src_idx

task_ID

iteration_IDs

Parameters:
append_iteration_IDs(pend_IDs)#

Return a copy, with additional iteration IDs.

Parameters:
  • self (AnySElement) –

  • pend_IDs (List[int]) –

Return type:

AnySElement

classmethod decode(elem_dat, attrs)#

Initialise a StoreElement from persistent element data

Parameters:
Return type:

ZarrStoreElement

encode(attrs)#

Prepare store elements data for the persistent store.

This method mutates attrs.

Parameters:

attrs (Dict) –

Return type:

List

es_idx: int#
id_: int#
index: int#
is_pending: bool#
iteration_IDs: List[int]#
seq_idx: Dict[str, int]#
src_idx: Dict[str, int]#
task_ID: int#
to_dict(iters)#

Prepare data for the user-facing Element object.