File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -470,18 +470,19 @@ def infotodict(seqinfo):
470
470
# if seq:
471
471
# suffix += 'seq-%s' % ('+'.join(seq))
472
472
473
- # some are ok to skip and not to whine
474
-
473
+ # For scouts -- we want only dicoms
474
+ # https://github.com/nipy/heudiconv/issues/145
475
475
if "_Scout" in s .series_description or \
476
476
(seqtype == 'anat' and seqtype_label and seqtype_label .startswith ('scout' )):
477
- skipped .append (s .series_id )
478
- lgr .debug ("Ignoring %s" , s .series_id )
477
+ outtype = ('dicom' ,)
479
478
else :
480
- template = create_key (seqtype , suffix , prefix = prefix )
481
- # we wanted ordered dict for consistent demarcation of dups
482
- if template not in info :
483
- info [template ] = []
484
- info [template ].append (s .series_id )
479
+ outtype = ('nii.gz' , 'dicom' )
480
+
481
+ template = create_key (seqtype , suffix , prefix = prefix , outtype = outtype )
482
+ # we wanted ordered dict for consistent demarcation of dups
483
+ if template not in info :
484
+ info [template ] = []
485
+ info [template ].append (s .series_id )
485
486
486
487
if skipped :
487
488
lgr .info ("Skipped %d sequences: %s" % (len (skipped ), skipped ))
You can’t perform that action at this time.
0 commit comments