Skip to content

Commit ceea468

Browse files
authored
Always try pims.ImageSequence if pims.open did not succeed (#817)
* Always try pims.ImageSequence if pims.open did not succeed * changelog
1 parent 375e5a5 commit ceea468

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

webknossos/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ For upgrade instructions, please check the respective *Breaking Changes* section
2020

2121
### Fixed
2222

23+
- Fixed a bug where some image sequences could not be read in layer_from_images. [#817](https://github.com/scalableminds/webknossos-libs/pull/817)
24+
2325

2426
## [0.10.21](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.10.21) - 2022-10-26
2527
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.10.20...v0.10.21)

webknossos/webknossos/dataset/_utils/pims_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _open_images(
267267
original_images = str(original_images)
268268
try:
269269
images_context_manager = pims.open(original_images)
270-
except TypeError:
270+
except Exception:
271271
images_context_manager = pims.ImageSequence(original_images)
272272

273273
with images_context_manager as images:

0 commit comments

Comments
 (0)