Skip to content

Commit 3476766

Browse files
committed
fix(cli,tests): fix typos on MNI152NLin6Asym name, improve Circle config
1 parent 1c43d0d commit 3476766

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ jobs:
392392
-e FMRIPREP_DEV 1 -u $(id -u) \
393393
--config $PWD/nipype.cfg -w /tmp/ds005/work \
394394
/tmp/data/ds005 /tmp/ds005/derivatives participant \
395+
--output-spaces MNI152NLin2009cAsym MNI152NLin6Asym \
395396
--sloppy --write-graph --mem_mb 4096 \
396397
--nthreads 2 --anat-only -vv
397398
- save_cache:

fmriprep/cli/run.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def parse_spaces(opts):
640640
from sys import stderr
641641
from collections import OrderedDict
642642
from templateflow.api import templates as get_templates
643-
# Set the default template to 'MNI152NLin2009c'
643+
# Set the default template to 'MNI152NLin2009cAsym'
644644
output_spaces = opts.output_spaces or OrderedDict([('MNI152NLin2009cAsym', {})])
645645

646646
if opts.template:
@@ -678,17 +678,17 @@ def parse_spaces(opts):
678678
# Validity of some inputs
679679
# ERROR check if use_aroma was specified, but the correct template was not
680680
if opts.use_aroma and 'MNI152NLin6Asym' not in output_spaces:
681-
output_spaces['MNI152Lin6Asym'] = {'res': 2}
681+
output_spaces['MNI152NLin6Asym'] = {'res': 2}
682682
print("""\
683-
Option "--use-aroma" requires functional images to be resampled to MNI152Lin6Asym space. \
684-
The argument "MNI152Lin6Asym:res-2" has been automatically added to the list of output spaces \
683+
Option "--use-aroma" requires functional images to be resampled to MNI152NLin6Asym space. \
684+
The argument "MNI152NLin6Asym:res-2" has been automatically added to the list of output spaces \
685685
(option ``--output-spaces``).""", file=stderr)
686686

687687
if opts.cifti_output and 'fsLR' not in output_spaces:
688688
if 'MNI152NLin6Asym' not in output_spaces:
689689
output_spaces['MNI152NLin6Asym'] = {'res': 2}
690690
print("""Option ``--cifti-output`` requires functional images to be resampled to \
691-
``MNI152LinAsym`` space. Such template identifier has been automatically added to the list \
691+
``MNI152NLin6Asym`` space. Such template identifier has been automatically added to the list \
692692
of output spaces (option "--output-space").""", file=stderr)
693693
if not [s for s in output_spaces if s in ('fsaverage5', 'fsaverage6')]:
694694
output_spaces['fsaverage5'] = {}

0 commit comments

Comments
 (0)