Skip to content

Metadata

linc_convert.utils.io.zarr.metadata

Metadata handling for Zarr.

This file contains code from the Zarr project https://github.com/zarr-developers/zarr-python

Metadata dataclass

Metadata()

Frozen, recursive, JSON-serializable metadata class.

to_dict

to_dict()

Convert this metadata to a JSON-serializable dict.

from_dict classmethod

from_dict(data)

Create an instance from a JSON-serializable dict.

GroupMetadata dataclass

GroupMetadata(attributes=dict(), zarr_format=3)

Bases: Metadata

Metadata for a Zarr group, including attributes and format version.

update_attributes

update_attributes(attributes)

Return a new GroupMetadata with updated attributes.

from_files classmethod

from_files(root)

Load metadata from the specified root directory.

to_files

to_files(root)

Write this metadata to the specified root directory.