Skip to content

Commit aea555b

Browse files
committed
BF: Use .get in group_dicoms_into_seqinfos to not puke if SeriesDescription is missing
happened on some hyperscanning data I was given my hands to touch at Dartmouth
1 parent ccc2eac commit aea555b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/dicoms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def group_dicoms_into_seqinfos(files, grouping, file_filter=None,
267267
if mw.image_shape is None:
268268
# this whole thing has no image data (maybe just PSg DICOMs)
269269
# If this is a Siemens PhoenixZipReport or PhysioLog, keep it:
270-
if mw.dcm_data.SeriesDescription == 'PhoenixZIPReport':
270+
if mw.dcm_data.get('SeriesDescription') == 'PhoenixZIPReport':
271271
# give it a dummy shape, so that we can continue:
272272
mw.image_shape = (0, 0, 0)
273273
else:

0 commit comments

Comments
 (0)