Skip to content

Commit 5644aa2

Browse files
author
David Ellis
committed
FIX: Adds stop and shrink values to autorecon2.py to ensure that the
6.0beta still works.
1 parent 3cd2fd0 commit 5644aa2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def checkT1s(T1_files, cw256=False):
3636
return T1_files, cw256, resample_type, origvol_names
3737

3838
def create_AutoRecon1(name="AutoRecon1", longitudinal=False, distance=200,
39-
custom_atlas=None, plugin_args=None, shrink=2, stop=0.0001,
39+
custom_atlas=None, plugin_args=None, shrink=None, stop=None,
4040
fsvernum=5.3):
4141
"""Creates the AutoRecon1 workflow in nipype.
4242

nipype/workflows/smri/freesurfer/autorecon2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def copy_ltas(in_file, subjects_dir, subject_id, long_template):
1111
return out_file
1212

1313
def create_AutoRecon2(name="AutoRecon2", longitudinal=False,
14-
plugin_args=None, fsvernum=5.3):
14+
plugin_args=None, fsvernum=5.3,
15+
stop=None, shrink=None):
1516
# AutoRecon2
1617
# Workflow
1718
ar2_wf = pe.Workflow(name=name)

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ def checkarg(arg, default):
259259
'inputspec.reg_template_withskull'),
260260
('awk_file', 'inputspec.awk_file')])])
261261
# create AutoRecon2
262-
ar2_wf, ar2_outputs = create_AutoRecon2(plugin_args=plugin_args, fsvernum=fsvernum)
262+
ar2_wf, ar2_outputs = create_AutoRecon2(plugin_args=plugin_args, fsvernum=fsvernum,
263+
stop=stop, shrink=shrink)
263264
# connect inputs for AutoRecon2
264265
reconall.connect([(inputspec, ar2_wf, [('num_threads', 'inputspec.num_threads')]),
265266
(config_node, ar2_wf, [('reg_template_withskull',

0 commit comments

Comments
 (0)