imageio: ValueError when reading TIFF file with volread on 2.11.1
When opening a TIFF stack with imageio.volread()
using version 2.11.1
, I get the following message :
<tifffile.TiffPage 0 @8> imagej_metadata failed with ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I previously opened the same files with version 2.9.0
without any issue. Considering the message itself, I wonder if it’s because of the update or if it’s numpy dependent ?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (9 by maintainers)
I looked a bit into it,
2022.2.2
shows up on my Linux setup, but not on the Windows setup where I initially encountered the bug. I’ll try to reproduce it on Ubuntu, where I can get2022.2.2
.EDIT : my test environment was running Python 3.7, upgrading to Python 3.8 allowed me to install 2022.2.2 which in turn solved the issue. Thanks !
https://github.com/cgohlke/tifffile/issues/111