Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jun 5, 2024
1 parent 421a417 commit 8a9d640
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ome_zarr/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ class FormatV05(FormatV04):
def version(self) -> str:
return "0.5"

@property
def version_key(self) -> str:
return "https://ngff.openmicroscopy.org/0.5"

def init_store(self, path: str, mode: str = "r") -> FSStore:
"""
Returns a Zarr v3 PathStore
Expand Down
5 changes: 4 additions & 1 deletion ome_zarr/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ def write_multiscales_metadata(
if axes is not None:
multiscales[0]["axes"] = axes

group.attrs["multiscales"] = multiscales
if hasattr(fmt, "version_key"):
group.attrs[fmt.version_key] = {"multiscales": multiscales}
else:
group.attrs["multiscales"] = multiscales


def write_plate_metadata(
Expand Down

0 comments on commit 8a9d640

Please sign in to comment.