hpcflow.sdk.persistence.zarr.ZarrStoreEAR#
- class hpcflow.sdk.persistence.zarr.ZarrStoreEAR(id_: 'int', is_pending: 'bool', elem_iter_ID: 'int', action_idx: 'int', commands_idx: 'List[int]', data_idx: 'Dict[str, int]', submission_idx: 'Optional[int]' = None, skip: 'Optional[bool]' = False, success: 'Optional[bool]' = None, start_time: 'Optional[datetime]' = None, end_time: 'Optional[datetime]' = None, snapshot_start: 'Optional[Dict]' = None, snapshot_end: 'Optional[Dict]' = None, exit_code: 'Optional[int]' = None, metadata: 'Dict[str, Any]' = None, run_hostname: 'Optional[str]' = None)#
Bases:
StoreEAR
Methods
Initialise a ZarrStoreEAR from persistent EAR data
Prepare store EAR data for the persistent store.
Prepare data for the user-facing ElementActionRun object.
Return a shallow copy, with specified data updated.
Attributes
- Parameters:
id_ (int) –
is_pending (bool) –
elem_iter_ID (int) –
action_idx (int) –
submission_idx (int | None) –
skip (bool | None) –
success (bool | None) –
start_time (datetime | None) –
end_time (datetime | None) –
snapshot_start (Dict | None) –
snapshot_end (Dict | None) –
exit_code (int | None) –
run_hostname (str | None) –
- classmethod decode(EAR_dat, attrs, ts_fmt)#
Initialise a ZarrStoreEAR from persistent EAR data
- Parameters:
- Return type:
- encode(attrs, ts_fmt)#
Prepare store EAR data for the persistent store.
This method mutates attrs.
- update(submission_idx=None, skip=None, success=None, start_time=None, end_time=None, snapshot_start=None, snapshot_end=None, exit_code=None, run_hostname=None)#
Return a shallow copy, with specified data updated.