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

reader throws exception that the file could not be found, despite correct filepath #96

Open
swelborn opened this issue Nov 9, 2021 · 0 comments

Comments

@swelborn
Copy link
Contributor

swelborn commented Nov 9, 2021

Hello. I'm a new user to dxchange/tomopy/github.

I found an issue that may not always happen, but can in certain circumstances. When I import a tiff using dxchange.reader.read_tiff, the logger throws an exception that the file doesn't exist. After trying 1000 different things (renaming file, moving to root, etc), nothing worked.

In the source for reader, you can see:

try: arr = tifffile.imread(fname, out='memmap') except IOError: logger.error('No such file or directory: %s', fname) return False

I tried tifffile.imread(fname), and it imported my tiff. I then tried tifffile.imread(fname,out='memmap') and it threw an os exception that said I did not have enough space. This was true. The tiff was larger than the remaining disk space on my computer. Clearing some space worked, however I would have never known this because the logger for dxchange was giving me a file missing error.

Is there a way to throw an error about disk space if that is the error that tifffile.imread(fname, out='memmap') gives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant