File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
def _build_parser ():
17
17
"""Build parser object."""
18
- from argparse import Action , ArgumentDefaultsHelpFormatter , ArgumentParser
18
+ from argparse import (
19
+ Action ,
20
+ ArgumentDefaultsHelpFormatter ,
21
+ ArgumentParser ,
22
+ BooleanOptionalAction ,
23
+ )
19
24
from functools import partial
20
25
from pathlib import Path
21
26
@@ -759,7 +764,8 @@ def _str_none(val):
759
764
)
760
765
g_baby .add_argument (
761
766
'--multi-step-reg' ,
762
- action = 'store_true' ,
767
+ action = BooleanOptionalAction ,
768
+ default = True ,
763
769
help = 'For certain adult templates (MNI152NLin6Asym), perform two step '
764
770
'registrations (native -> MNIInfant -> template) and concatenate into a single xfm' ,
765
771
)
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ class workflow(_Config):
578
578
"""Run FreeSurfer ``recon-all`` with the ``-logitudinal`` flag."""
579
579
medial_surface_nan = None
580
580
"""Fill medial surface with :abbr:`NaNs (not-a-number)` when sampling."""
581
- multi_step_reg = False
581
+ multi_step_reg = True
582
582
"""Perform multiple registrations (native -> MNIInfant -> template) and concatenate into a
583
583
single transform"""
584
584
norm_csf = False
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def _make_params(
138
138
ignore : list [str ] = None ,
139
139
bids_filters : dict = None ,
140
140
norm_csf : bool = False ,
141
- multi_step_reg : bool = False ,
141
+ multi_step_reg : bool = True ,
142
142
):
143
143
if ignore is None :
144
144
ignore = []
@@ -219,6 +219,7 @@ def _make_params(
219
219
_make_params (bids_filters = {'sbref' : {'suffix' : 'sbref' }}),
220
220
_make_params (norm_csf = True ),
221
221
_make_params (multi_step_reg = True ),
222
+ _make_params (multi_step_reg = False ),
222
223
],
223
224
)
224
225
def test_init_nibabies_wf (
You can’t perform that action at this time.
0 commit comments