Skip to content

Commit 3df5718

Browse files
committed
force ficom reading of files
1 parent dc0acb7 commit 3df5718

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymirc/fileio/read_dicom.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@ def __init__(self, path, pattern = '*.dcm'):
613613

614614
# first read all dicom images to get the UIDs
615615
for fname in self.allfiles:
616-
dicomfile = dicom.read_file(fname)
616+
dicomfile = dicom.read_file(fname, force = True)
617+
if 'SeriesInstanceUID' not in dicomfile:
618+
continue
617619
self.UIDs.append(dicomfile.SeriesInstanceUID)
618620
dicomfile.clear()
619621

0 commit comments

Comments
 (0)