Skip to content

Commit

Permalink
Added warning about napari multiscale issue
Browse files Browse the repository at this point in the history
  • Loading branch information
m-albert committed Jan 4, 2024
1 parent c842b3d commit aaa9f24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/napari_stitcher/viewer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dask.array as da
from dask import compute
from functools import partial
import warnings

import multiscale_spatial_image as msi
from spatial_image import to_spatial_image
Expand Down Expand Up @@ -221,6 +222,9 @@ def create_image_layer_tuples_from_msim(
spacing = spatial_image_utils.get_spacing_from_sim(sim)
origin = spatial_image_utils.get_origin_from_sim(sim)

if len(scale_keys) > 1 and ndim == 3:
warnings.warn('In 3D, theres a napari bug concerning scale/translate when using multiscale images.')

kwargs = \
{
'contrast_limits': contrast_limits,
Expand Down

0 comments on commit aaa9f24

Please sign in to comment.