Open NHPatterson opened 1 year ago
Hi @NHPatterson - apologies for the delay. It is not a bug, when i added support for image.ome-zarr
I did not initially implement a way to view multiple, with the intention to do so in a future update (using a different mechanism than the current image.raster.json
), but that has taken me longer than expected. I just added more background here https://github.com/vitessce/vitessce/discussions/1502 about working on a solution to this that can be implemented more quickly.
No worries, I see. I did manage to hack ome-zarr to the image.raster.json but it misses some features like correct scaling but it seems you have bigger solution planned that'll probably take care of it.
For reference:
case ('ome-zarr'): {
const loader = await viv.loadOmeZarr(url, { type: "multiscales" });
const Channels = loader.metadata.omero.channels.map(channel => channel);
const channels = Array.isArray(Channels)
? Channels.map((channel, i) => channel.label || `Channel ${i}`)
: [Channels.label || `Channel ${0}`];
return { ...loader, channels};
Hi all. Ran into a small issue trying to create a config with 2 OME-Zarrs (i'm using latest version on pypi). My code that worked for multiple OME-TIFFs doesn't work.
AttributeError with
MultiImageWrapper
withOmeZarrWrapper
Error traceback
Adding as objects works but the viewer only shows first OME-Zarr
Config output
Maybe there's another routine to get a config with multiple OME-Zarrs?
Thanks!