This repository was archived by the owner on Dec 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
Tifffile error when accessing dims attribute #495
Copy link
Copy link
Closed
Labels
third party dependencyRequires a feature or bugfix from a third party dependency outside the scope of this packageRequires a feature or bugfix from a third party dependency outside the scope of this package
Description
System and Software
- aicsimageio Version: 4.11.0
- Python Version: 3.10.11
- Operating System: Ubuntu on WSL2
Description
When I open an TIFF image with AICSImage and ask for the dims attribute, I get an error: TypeError: unexpected keyword argument: is_mmstack.
Full Traceback:
Traceback (most recent call last):
File "/home/plumail/aics-bug/bug.py", line 4, in <module>
print(AICSImage(p).dims)
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/aicsimageio/aics_image.py", line 574, in dims
dims=self.xarray_dask_data.dims, shape=self.shape
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/aicsimageio/aics_image.py", line 438, in xarray_dask_data
and dimensions.DimensionNames.MosaicTile in self.reader.dims.order
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/aicsimageio/readers/reader.py", line 532, in dims
self._dims = Dimensions(dims=self.xarray_dask_data.dims, shape=self.shape)
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/aicsimageio/readers/reader.py", line 359, in xarray_dask_data
self._xarray_dask_data = self._read_delayed()
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/aicsimageio/readers/tiff_reader.py", line 459, in _read_delayed
with TiffFile(open_resource, is_mmstack=False) as tiff:
File "/home/plumail/miniconda3/envs/aicsimageio2/lib/python3.10/site-packages/tifffile/tifffile.py", line 3142, in __init__
raise TypeError(f'unexpected keyword argument: {key}')
TypeError: unexpected keyword argument: is_mmstack
Expected Behavior
It should return the Dims object.
Reproduction
conda create -n aicsimageio-all-env python=3.10
conda activate aicsimageio-all-env
pip install aicsimageio[all]Run
from aicsimageio import AICSImage
print(AICSImage("https://people.math.sc.edu/Burkardt/data/tif/at3_1m4_01.tif").dims)"Environment
The version of tifffile installed is 2022.4.8.
When I install aicsimageio without [all], I get tifffile version 2023.4.12 and the bug disappears.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
third party dependencyRequires a feature or bugfix from a third party dependency outside the scope of this packageRequires a feature or bugfix from a third party dependency outside the scope of this package