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 missing omero.rdef #167

Closed will-moore closed 1 year ago

will-moore commented 1 year ago

I just tried viewing data at https://public.czbiohub.org/royerlab/zebrahub/imaging/single-objective/ZSNS001_tail.ome.zarr and this failed because the omero metadata has no rdef object:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'defaultT')
    at Vv (index-da7a8e3f.js:3887:11929)
    at h$ (index-da7a8e3f.js:3887:11413)
    at async Object.write (index-da7a8e3f.js:3887:15559)

This fix simply allows us to use the 0 default for Z and T, which allows the image to be viewed, although the down-sampling in Z causes other issues:

Screenshot 2023-03-29 at 17 10 14

manzt commented 1 year ago

Hi Will, sorry for such a delay on this! I was on vacation. Looks great. Thanks!