hpcflow.sdk.persistence.zarr.ZarrStoreParameter#
- class hpcflow.sdk.persistence.zarr.ZarrStoreParameter(id_, is_pending, is_set, data, file, source)#
Bases:
StoreParameter
Represents a parameter in a Zarr persistent store.
Methods
Initialise from persistent store parameter data.
Prepare store parameter data for the persistent store.
Return a copy, with data set.
Return a copy, with file set.
Return a copy, with updated source.
Attributes
The ID of this parameter.
Whether the parameter has changes not yet persisted.
Whether the parameter is set.
Description of the value of the parameter.
Description of the file this parameter represents.
Description of where this parameter originated.
- Parameters:
id_ (int) –
is_pending (bool) –
is_set (bool) –
data (ParameterTypes) –
file (File | None) –
source (ParamSource) –
- data: ParameterTypes#
Description of the value of the parameter.
- classmethod decode(id_, data, source, *, path=None, **kwargs)#
Initialise from persistent store parameter data.
- encode(**kwargs)#
Prepare store parameter data for the persistent store.
- set_data(value)#
Return a copy, with data set.
- Parameters:
value (Any) –
- Return type:
Self
- source: ParamSource#
Description of where this parameter originated.
- update_source(src)#
Return a copy, with updated source.
- Parameters:
src (ParamSource) –
- Return type:
Self