From 8f81914ce8bf8176cd79a7378eecc163cfc5276d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 6 Jun 2022 12:21:45 -0400 Subject: [PATCH] BF(?): make _setter images be taken as scouts - only DICOMs are saved --- heudiconv/heuristics/reproin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/heudiconv/heuristics/reproin.py b/heudiconv/heuristics/reproin.py index bbf657f0..7f5129bb 100644 --- a/heudiconv/heuristics/reproin.py +++ b/heudiconv/heuristics/reproin.py @@ -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')