AllenCell / napari-allencell-segmenter

A plugin that enables image segmentation provided by Allen Institute for Cell Science
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

Index error when trying to use image loaded with napari-aicsimageio #105

Closed Aerendel closed 3 years ago

Aerendel commented 3 years ago

Expected behavior Should be able to load a CZI file into Napari using the napari-aicsimageio reader plugin, select a layer, channel, workflow and run a segmentation.

Actual behavior The Segmenter UI shows the full channel list for the source image, no matter which layer is selected. If user selects anything else than Channel index 0, we see the following error

IndexError: index 3 is out of bounds for axis 2 with size 1

Details

Aerendel commented 3 years ago

Implemented a temporary solution now to disable loading image data and metadata from the source if a reader plugin is being used. This should ensure the same UX for regular scenarios, and basic compatibility with reader plugins like napari-aicsimageio, until we come up with a better user experience. Opened https://github.com/AllenCell/napari-allencell-segmenter/issues/106 to that effect.