Skip to content

Commit caa44f6

Browse files
authored
Merge pull request #165 from Ayala-Lagunas/main
Added support for new Image DMH file extensions.
2 parents 3486c96 + a6f8a66 commit caa44f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swat/cas/datamsghandlers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,9 @@ def __init__(self, data, nrecs=1000, subdirs=True):
12451245
if isinstance(data, str):
12461246
files = []
12471247
extensions = ['bmp', 'dib', 'jpg', 'jpeg', 'jpe', 'jp2', 'png', 'pbm', 'pmg',
1248-
'ppm', 'tif', 'tiff', 'webp']
1248+
'ppm', 'tif', 'tiff', 'webp', 'pic', 'dcm', 'dicom',
1249+
'nrrd', 'nhdr', 'raw', 'nii', 'img', 'hdr', 'mha', 'mhd',
1250+
'saswimg', 'sastimg']
12491251

12501252
# Also search for uppercase file extensions if not running on a
12511253
# case-insensitive OS (Windows).

0 commit comments

Comments
 (0)