@@ -580,13 +580,6 @@ def build_workflow(opts, retval):
580
580
if not opts .run_reconall :
581
581
output_spaces = [item for item in output_spaces if not item .startswith ('fs' )]
582
582
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
-
590
583
# Validity of some inputs
591
584
# ERROR check if use_aroma was specified, but the correct template was not
592
585
if opts .use_aroma and (opts .template != 'MNI152NLin2009cAsym' or
@@ -598,14 +591,19 @@ def build_workflow(opts, retval):
598
591
'spaces (option "--output-space").'
599
592
)
600
593
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").' )
609
607
610
608
# Check output_space
611
609
if 'template' not in output_spaces and (opts .use_syn_sdc or opts .force_syn ):
0 commit comments