ValueError when reading TIFF file with volread on 2.11.1
See original GitHub issueWhen 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 ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
How can I solve this error from TIFF file? - GIS Stack Exchange
LZW: 5> requires the 'imagecodecs' package. This is my code: !pip install tifffile !pip install imagecodecs import numpy import tifffile as tiff ......
Read more >Value Error in reading tif image with pil in python?
The problem is that PIL wants to see a ".tiff" at the end of the file name. You have ".tif". The solution is...
Read more >TIFF TIFF format — imageio 2.5.0 documentation
Provides support for a wide range of Tiff images. Images that contain multiple pages can be read using imageio.mimread() to read the individual...
Read more >Read a bitmap image stored in the TIFF format - R-Project.org
Reads an image from a TIFF file/content into a raster array. ... Either name of the file to read from or a raw...
Read more >tifffile - PyPI
Read and write TIFF files. ... Julian_datetime raises ValueError for dates before year 1 (breaking). Regressed import time due to typing. 2022.4.8.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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