hpcflow.sdk.core.zarr_io.ZarrEncodable#

class hpcflow.sdk.core.zarr_io.ZarrEncodable#

Bases: object

Base class of data that can be converted to and from zarr form.

Methods

from_zarr

Read an instance of this class from the given zarr group.

to_dict

Convert this object to a dict.

to_zarr

Save this object into the given zarr group.

classmethod from_zarr(zarr_group, dataset_copy=False)#

Read an instance of this class from the given zarr group.

Parameters:
  • zarr_group (Group) –

  • dataset_copy (bool) –

Return type:

Self

to_dict()#

Convert this object to a dict.

Return type:

dict[str, Any]

to_zarr(zarr_group)#

Save this object into the given zarr group.

Parameters:

zarr_group (Group) –