Skip to content

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

@swelborn

Description

@swelborn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions