ome/napari-ome-zarr

Layer names

constantinpape opened this issue · 4 comments

Currently, the filename is used to determine the layer names:
image
I think it would be better to use the "name" field from the multiscale spec instead (if it's given).
This would make the layers easier to distinguish.

Fyi, I noticed that this works for some other ome.zarr files, i.e. the name field is used for the layers.
However, it does not wok for this data https://oc.embl.de/index.php/s/wfpdHpgHseGUTYK, which has a few other issues as well (#37, #35).
It would be important to understand if this is a problem with the data (which is produced with this script using ome-zarr-py) or the napari plugin (or both :D)

After fixing the issue with the image-label field this looks a bit different now:
image
It uses the filename for the image data and the name field for the label data. I think that it should use the name field for all of the layers (if it is given, which is the case here; it's image for the image data).
The new data is available here:
https://oc.embl.de/index.php/s/zsg7aHyg1R7aFgh

Should be fixed by ome/ome-zarr-py#214