Skip to content

Commit 403620e

Browse files
committed
ENH: consider series_description if protocol_name is empty
1 parent e96a246 commit 403620e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

heudiconv/heuristics/reproin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ def infotodict(seqinfo):
455455
dcm_image_iod_spec = image_type_seqtype = None
456456

457457
protocol_name_tuned = s.protocol_name
458+
if not protocol_name_tuned:
459+
protocol_name_tuned = s.series_description
460+
if not protocol_name_tuned:
461+
lgr.warning(
462+
"Could not determine the series name by looking at "
463+
"protocol_name and series_description - both were empty")
458464
# Few common replacements
459465
if protocol_name_tuned in {'AAHead_Scout'}:
460466
protocol_name_tuned = 'anat-scout'

0 commit comments

Comments
 (0)