Skip to content

Commit 3d3b0cc

Browse files
committed
Fix logic: preserve dots in format extension for nii.gz lookup
Signed-off-by: Mohammad Amanour Rahman <amanourrahman@gmail.com>
1 parent c9a4728 commit 3d3b0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/data/image_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence:
127127
"tiff": "Pillow or tifffile",
128128
}
129129

130-
fmt_clean = fmt.replace(".", "").lower()
130+
fmt_clean = fmt.lower()
131131
package_hint = recommended_packages.get(fmt_clean, "")
132132

133133
msg = f"No ImageWriter backend found for {fmt}."

0 commit comments

Comments
 (0)