hpcflow.sdk.persistence.zarr.ZarrStoreParameter#

class hpcflow.sdk.persistence.zarr.ZarrStoreParameter(id_: 'int', is_pending: 'bool', is_set: 'bool', data: 'Any', file: 'Dict', source: 'Dict')#

Bases: StoreParameter

Methods

decode

Initialise from persistent store parameter data.

encode

Prepare store parameter data for the persistent store.

set_data

Return a copy, with data set.

set_file

Return a copy, with file set.

update_source

Return a copy, with updated source.

Attributes

id_

is_pending

is_set

data

file

source

Parameters:
data: Any#
classmethod decode(id_, data, source, arr_group, path=None, dataset_copy=False)#

Initialise from persistent store parameter data.

Parameters:
  • id_ (int) –

  • data (None | Dict) –

  • source (Dict) –

  • arr_group (Group) –

  • path (List[str] | None) –

  • dataset_copy (bool) –

Return type:

Any

encode(root_group, arr_path)#

Prepare store parameter data for the persistent store.

Parameters:
  • root_group (Group) –

  • arr_path (str) –

Return type:

Dict[str, Any]

file: Dict#
id_: int#
is_pending: bool#
is_set: bool#
set_data(value)#

Return a copy, with data set.

Parameters:

value (Any) –

Return type:

None

set_file(value)#

Return a copy, with file set.

Parameters:

value (Any) –

Return type:

None

source: Dict#
update_source(src)#

Return a copy, with updated source.

Parameters:

src (Dict) –

Return type:

None