Skip to content

Commit aae123e

Browse files
authored
Merge pull request #23 from bioio-devs/bugfix/be-flexible-about-ext-prefix
Allow '.' in plugin ext prefix
2 parents 787ce16 + a059bde commit aae123e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bioio/bio_image.py

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def determine_plugin(
150150

151151
# Check for extension in plugins_by_ext
152152
for format_ext, plugins in plugins_by_ext.items():
153+
# Remove "." prefix if already there
154+
if format_ext.startswith("."):
155+
format_ext = format_ext[1:]
153156
if path.lower().endswith(f".{format_ext}"):
154157
for plugin in plugins:
155158
ReaderClass = plugin.metadata.get_reader()

0 commit comments

Comments
 (0)