From b7e8e903f9ed2180fccde92bda902914463bc1e7 Mon Sep 17 00:00:00 2001 From: Peter Sobolewski Date: Sun, 21 Aug 2022 16:55:34 -0400 Subject: [PATCH] Check the squeezed data for scale vals --- napari_aicsimageio/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/napari_aicsimageio/core.py b/napari_aicsimageio/core.py index 872ad0f..7b4e7a3 100644 --- a/napari_aicsimageio/core.py +++ b/napari_aicsimageio/core.py @@ -84,7 +84,8 @@ def _get_meta(data: xr.DataArray, img: AICSImage) -> Dict[str, Any]: # Handle scales scale: List[float] = [] - for dim in img.reader.dims.order: + # check the dims of the squeezed array for scale values + for dim in data.dims: if dim in [ DimensionNames.SpatialX, DimensionNames.SpatialY,