Skip to content

Commit 99a1b9b

Browse files
committed
fix "template" issue
1 parent f82184c commit 99a1b9b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fmriprep/cli/run.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,15 @@ def build_workflow(opts, retval):
581581
'spaces (option "--output-space").'
582582
)
583583

584+
if opts.cifti_output and (opts.template != 'MNI152NLin2009cAsym' or
585+
'template' not in output_spaces):
586+
output_spaces.append('template')
587+
logger.warning(
588+
'Option "--cifti-output" requires functional images to be resampled to MNI space. '
589+
'The argument "template" has been automatically added to the list of output '
590+
'spaces (option "--output-space").'
591+
)
592+
584593
# Check output_space
585594
if 'template' not in output_spaces and (opts.use_syn_sdc or opts.force_syn):
586595
msg = ['SyN SDC correction requires T1 to MNI registration, but '

0 commit comments

Comments
 (0)