Skip to content

Labels

ome_zarr_models.v04.labels.Labels

Bases: BaseGroupv04[LabelsAttrs]

An OME-Zarr labels dataset.

Attributes:

Name Type Description
zarr_format Literal[2]
attributes LabelsAttrs
members Mapping[str, GroupSpec | ArraySpec] | None

from_zarr

from_zarr(group: Group) -> Self

Create an OME-Zarr labels model from a zarr.Group.

Parameters:

Name Type Description Default
group Group

A Zarr group that has valid OME-Zarr labels metadata.

required

ome_zarr_models.v04.labels.LabelsAttrs

Bases: BaseAttrsv2

Attributes for an OME-Zarr labels dataset.

Attributes:

Name Type Description
labels list[str]

List of paths to labels arrays within a labels dataset.