allen-cell-animated / website-3d-cell-viewer

Other
4 stars 4 forks source link

pure 2d image can not display in xy mode? #263

Closed toloudis closed 3 weeks ago

toloudis commented 1 month ago

Description

Loading a 2D zarr and switching to xy mode gives error that min and max of slider can not be same value.

Expected Behavior

Expect a 2d xy image to show in xy mode with no problems.

Reproduction

https://allen-cell-animated.github.io/website-3d-cell-viewer/viewer/?url=https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.4/idr0001A/2551.zarr/A/1/0/labels/0/

toloudis commented 1 month ago

for dimension = 1, hide that slider entirely?

toloudis commented 1 month ago

Also: in 3d mode, you can increment min slider value to be greater than max. (Separate issue?) Also: in 3d mode, when dim range is 0-1 you can still increment from 0 to 1 and the image disappears.