Skip to content

Commit

Permalink
Image name for single channel image
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed May 4, 2022
1 parent b932d18 commit 2ed0306
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions napari_ome_zarr/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ def f(*args: Any, **kwargs: Any) -> List[LayerData]:
np.squeeze(level, axis=channel_axis) for level in node.data
]
else:

metadata["name"] = "unnamed"
image = node.metadata.get("ome-xml:image", None)
# Pull from OME-XML metadata
if image:
metadata["name"] = image.name

# Pull from NGFF metadata?
# TBD
# Handle the removal of vispy requirement from ome-zarr-py
cms = node.metadata.get("colormap", [])
for idx, cm in enumerate(cms):
Expand Down

0 comments on commit 2ed0306

Please sign in to comment.