Skip to content

Metadata not stored with write_image #602

Description

@joshua-gould
from ome_zarr.writer import write_image
import numpy as np

size_xy = 128
size_z = 10
rng = np.random.default_rng(0)
data = rng.poisson(lam=10, size=(2, size_z, size_xy, size_xy)).astype(np.uint8)
path = "test.zarr"
metadata = dict(foo="bar")
write_image(data, path, axes="czyx", scale_factors=[], **metadata)
# no metadata with foo="bar" stored in zarr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions