-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
io.imread() not opening renamed NDTiffStacks #7382
Comments
Thanks for the report!
This seems a little confusing to me. I'm not sure if this is an oversight while writing the report or if this points to the actual cause of the issue. But these paths don't line up. You rename to "CellLine1_1Hz_Field_2.NDTiffStack.tif" including the directory but the error message indicates that you used "CellLine1_1Hz_Field_1.NDTiffStack.tif". Can you check if that's the case and maybe try to describe the issue in clearer more explicit terms? E.g. # path before renaming
directory_1/file_name_1.tif
# path after renaming
directory_2/file_name_2.tif It would be even better if you could provide a snippet to reproduce this. 🙏 Note that we are planning on deprecating the IO plugin infrastructure altogether (#7353). You could also try to use |
Thank you, Lars, for the quick reply. Apologies for the confusion. That point is the actual cause of the issue. I follow up below with some specifications.
To me, it seems that io.imread() somehow have access to the pre-renamed filename in the renamed folder, and this of course causes the error as the file in the new folder has indeed another name, since it has been indeed renamed. I have no clue on how/where io.imread() gets the information on the old file name. I already emptied Win10 cache. The snippet is very minimal in my case, as the error is recreated already with:
The files to be analyzed are 2-3 Gb in size. Let me know if you think one sample is required. |
The metadata for NDTiff stacks, including the file names where image data are stored, are found in a separate |
Thanks a lot; the |
Description:
Hello,
I am acquiring NDTiffStack.tiff files (XYt) with a scientific camera and MicroManager (MM) and using scikit-image to analyze the files. My script works with all the files except those that have been manually renamed.
For example, I acquire a file MM and the file is saved on the SSD as "CellLine1_1Hz_Field_1.NDTiffStack.tif" and placed within a folder with the same prefix "CellLine1_1Hz_Field_1".
If I open this file with io.imread(CellLine1_1Hz_Field_1.NDTiffStack.tif), it works.
If I manually rename both the file and its directory, i.e. to "CellLine1_1Hz_Field_2.NDTiffStack.tif", the command io.imread(CellLine1_1Hz_Field_2.NDTiffStack.tif) provides the following error:
If I add in the same folder a file with the original name, both files are correctly opened.
If I move the renamed file into another directory that contains a non-renamed file, both files are correctly opened.
I tried to reboot the machine, restart the kernel, update the Python version, change computer, change the loading package (io.imread or tifffile) but no luck.
Way to reproduce:
No response
Version information:
The text was updated successfully, but these errors were encountered: