Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error reading in OME-TIFF #72

Closed
emmanuel-contreras opened this issue Mar 17, 2021 · 7 comments
Closed

error reading in OME-TIFF #72

emmanuel-contreras opened this issue Mar 17, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@emmanuel-contreras
Copy link

Hello, I recently upgraded to the latest version and noticed that I was no longer able to load our OME-TIFF images, getting the error below. I downgraded to 2020.10.01 (using conda) and the error disappeared. Not sure if this is a problem with our images or an update on the module.

Do you know why I may be getting this error on the latest version?

IPdb [3]: im = tifffile.imread(path_image)
OME series: failed to read 'H9_mitotracker-060_Cycle00001_Ch3_000001.ome.tif'
OME series: expected 2 frames, got 1
*** ValueError: failed to read 4194304 bytes

Thank you

@cgohlke
Copy link
Owner

cgohlke commented Mar 17, 2021

Can you share the file?

@emmanuel-contreras
Copy link
Author

Sure, here it is. I had to change the extension from ".tif" to ".png" otherwise github wouldn't let me upload it. Thank you for taking a look at it, please let me know if you need more info.

H9-mitotracker-060-Cycle00001-Ch3-000001 ome

@cgohlke
Copy link
Owner

cgohlke commented Mar 17, 2021

The file is part of a series of files. Can you share the whole series, especially the MetadataFile H9_mitotracker-060_Cycle00001_Ch1_000001.ome.tif?

@emmanuel-contreras
Copy link
Author

Sure, here it is
H9_mitotracker-060_Cycle00001_Ch1_000001 ome

@cgohlke cgohlke added the bug Something isn't working label Mar 17, 2021
@cgohlke
Copy link
Owner

cgohlke commented Mar 17, 2021

I can reproduce this issue. It happens when the second file 'H9_mitotracker-060_Cycle00001_Ch3_000001.ome.tif' is not present. This case is actually tested, but the test case was not well chosen...

@emmanuel-contreras
Copy link
Author

ahh ok, sounds good. It also sounds like I've been loading the series files incorrectly... I usually just load one of the files, I see a brief error but it still loads the individual image correctly. Thanks for the help!

@cgohlke
Copy link
Owner

cgohlke commented Mar 17, 2021

Thanks for reporting the issue. Should be fixed in v2021.3.17. Although it might be better to raise an error if files are missing from an OME-TIFF series...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants