hms-dbmi / vizarr

A minimal Zarr image viewer based on Viv.
https://hms-dbmi.github.io/vizarr/?source=https://minio-dev.openmicroscopy.org/idr/v0.3/idr0062-blin-nuclearsegmentation/6001240.zarr
MIT License
114 stars 16 forks source link

Handle no channel axis #173

Closed will-moore closed 11 months ago

will-moore commented 11 months ago

This fixes an issue I saw when trying to view a simple NGFF Plate created by the example code at https://github.com/ome/ome-zarr-py/pull/317/files

The Images in this Plate have no omero metadata and they also have no c dimension (just zyx). In this case, the defaultMeta() logic fails to calculate contrast limits. Allowing that code to work with channelAxis being -1 looks like the simplest fix.