Skip to content

Commit a66b2b1

Browse files
committed
ENH: Enable ignoring single-band references
1 parent 0c7af6a commit a66b2b1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fmriprep/cli/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get_parser():
107107
g_conf = parser.add_argument_group('Workflow configuration')
108108
g_conf.add_argument(
109109
'--ignore', required=False, action='store', nargs="+", default=[],
110-
choices=['fieldmaps', 'slicetiming'],
110+
choices=['fieldmaps', 'slicetiming', 'sbref'],
111111
help='ignore selected aspects of the input dataset to disable corresponding '
112112
'parts of the workflow (a space delimited list)')
113113
g_conf.add_argument(

fmriprep/workflows/bold/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
265265
entities['type'] = 'sbref'
266266
files = layout.get(**entities)
267267
refbase = os.path.basename(ref_file)
268-
if files and multiecho:
268+
if 'sbref' in ignore:
269+
LOGGER.info("Single-band reference files ignored.")
270+
elif files and multiecho:
269271
LOGGER.warning("Single-band reference found, but not supported in "
270272
"multi-echo workflows at this time. Ignoring.")
271273
elif files:

0 commit comments

Comments
 (0)