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

pims.open fails to open a folder containing a single image using a glob pattern #452

Open
n-poulsen opened this issue Jul 14, 2023 · 0 comments

Comments

@n-poulsen
Copy link

When attempting to open images in a folder as an ImageSequence, the module fails when there is a single image in the folder. I would expect the behavior to return an image sequence containing a single image.

Reproducing the issue with the data:

images/
  - img.png

Code:

glob_pattern = "images/*.png"
with pims.open(sfname) as imgs:
   ...

Stacktrace

File "pims/api.py", line 206, in open
    raise UnknownFormatError("All handlers returned exceptions:\n" + exceptions)
pims.api.UnknownFormatError: All handlers returned exceptions:
<class 'pims.image_reader.ImageReader'> errored: No such file: 'images/*.png'
<class 'pims.image_reader.ImageReaderND'> errored: No such file: 'images/*.png'
<class 'pims.imageio_reader.ImageIOReader'> errored: No such file: 'images/*.png'
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