Skip to content

Commit

Permalink
BF(?): make _setter images be taken as scouts - only DICOMs are saved
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Jun 7, 2022
1 parent 64569f1 commit 8f81914
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions heudiconv/heuristics/reproin.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,11 @@ def from_series_info(name):

# For scouts -- we want only dicoms
# https://github.com/nipy/heudiconv/issues/145
if "_Scout" in s.series_description or \
(datatype == 'anat' and datatype_suffix and datatype_suffix.startswith('scout')):
if ("_Scout" in s.series_description
or (datatype == 'anat' and datatype_suffix and datatype_suffix.startswith('scout'))
or s.series_description.lower() == s.protocol_name.lower() + "_setter"
):
lgr.debug("Placing only DICOMs for %s since seems to be scout/setter images", s.series_description)
outtype = ('dicom',)
else:
outtype = ('nii.gz', 'dicom')
Expand Down

0 comments on commit 8f81914

Please sign in to comment.