mobie / mobie-io

BSD 2-Clause "Simplified" License
3 stars 8 forks source link

Multi channel names #103

Open tischi opened 2 years ago

tischi commented 2 years ago
        final ImageJ imageJ = new ImageJ();
        imageJ.ui().showUI();
        final OpenOMEZARRFromS3Command command = new OpenOMEZARRFromS3Command();
        command.s3URL = "https://s3.embl.de/i2k-2020/ngff-example-data/v0.4/czyx.ome.zarr";
        command.run();

yields:

image

Where both channels have the same name. We should change this as sources in BDV should not have the same name (In fact I am surprised that this does not crash)!

constantinpape commented 2 years ago

Where both channels have the same name. We should change this as sources in BDV should not have the same name (In fact I am surprised that this does not crash)!

The problem here is that both get the name in multiscales, which is czyx, since both channels come from the same ome-zarr multiscales object. I am not sure what the best solution is here, we can maybe make the names unique via {name}-c{i}, so here czyx-c0, czyx-c0

tischi commented 2 years ago

yes, just append c{i}