Skip to content

Commit 9647511

Browse files
authored
Suffixes with capital letters (#1100)
* make check for valid suffixes case insensitive. * Update changelog.
1 parent 926be47 commit 9647511

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webknossos/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
2424
- Moved functional parts of merge volume annotation CLI to Dataset and Annotation classes. [#1055](https://github.com/scalableminds/webknossos-libs/pull/1055)
2525
- Set a new max value for test_align_with_mag_against_numpy_implementation to avoid failures due to high numbers. [#1082](https://github.com/scalableminds/webknossos-libs/pull/1082)
2626
- Updated dependabot.yml [#1087](https://github.com/scalableminds/webknossos-libs/pull/1087)
27+
- Make lookup for supported suffixes case-insensitive. [#1100](https://github.com/scalableminds/webknossos-libs/pull/1100)
2728

2829
### Fixed
2930
- Fixed an issue with downloading annotations through the Command Line Interface. [#1083](https://github.com/scalableminds/webknossos-libs/pull/1083)

webknossos/webknossos/dataset/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def from_images(
624624
input_files = [
625625
i.relative_to(input_upath)
626626
for i in input_upath.glob("**/*")
627-
if i.is_file() and i.suffix.lstrip(".") in valid_suffixes
627+
if i.is_file() and i.suffix.lstrip(".").lower() in valid_suffixes
628628
]
629629
if len(input_files) == 0:
630630
raise ValueError(

0 commit comments

Comments
 (0)