Skip to content

Commit d417f8f

Browse files
committed
no longer override fsaverage with fsaverage6
1 parent fe12b42 commit d417f8f

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

fmriprep/cli/run.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,6 @@ def build_workflow(opts, retval):
580580
if not opts.run_reconall:
581581
output_spaces = [item for item in output_spaces if not item.startswith('fs')]
582582

583-
# Map fsaverage to fsaverage6
584-
if 'fsaverage' in output_spaces:
585-
logger.warning('Selected "fsaverage" output space has been mapped to "fsaverage6"')
586-
output_spaces.remove('fsaverage')
587-
if 'fsaverage6' not in output_spaces:
588-
output_spaces = sorted(output_spaces + ['fsaverage6'])
589-
590583
# Validity of some inputs
591584
# ERROR check if use_aroma was specified, but the correct template was not
592585
if opts.use_aroma and (opts.template != 'MNI152NLin2009cAsym' or
@@ -598,14 +591,19 @@ def build_workflow(opts, retval):
598591
'spaces (option "--output-space").'
599592
)
600593

601-
if opts.cifti_output and (opts.template != 'MNI152NLin2009cAsym' or
602-
'template' not in output_spaces):
603-
output_spaces.append('template')
604-
logger.warning(
605-
'Option "--cifti-output" requires functional images to be resampled to MNI space. '
606-
'The argument "template" has been automatically added to the list of output '
607-
'spaces (option "--output-space").'
608-
)
594+
if opts.cifti_output:
595+
if 'template' not in output_spaces:
596+
output_spaces.append('template')
597+
logger.warning(
598+
'Option "--cifti-output" requires functional images to be resampled to MNI '
599+
'space. The argument "template" has been automatically added to the list of '
600+
'output spaces (option "--output-space").')
601+
if not [s for s in output_spaces if s in ('fsaverage5', 'fsaverage6')]:
602+
output_spaces = sorted(output_spaces + ['fsaverage5'])
603+
logger.warning(
604+
'Option "--cifti-output" requires functional images to be resampled to fsaverage '
605+
'space. The argument "fsaverage5" has been automatically added to the list of '
606+
'output spaces (option "--output-space").')
609607

610608
# Check output_space
611609
if 'template' not in output_spaces and (opts.use_syn_sdc or opts.force_syn):

0 commit comments

Comments
 (0)