Skip to content

Commit 095e359

Browse files
author
David Ellis
committed
FIX: Adds distance to autorecon2.py.
1 parent 5644aa2 commit 095e359

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def checkT1s(T1_files, cw256=False):
3535
resample_type = 'cubic' if len(T1_files) > 1 else 'interpolate'
3636
return T1_files, cw256, resample_type, origvol_names
3737

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

nipype/workflows/smri/freesurfer/autorecon2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def copy_ltas(in_file, subjects_dir, subject_id, long_template):
1212

1313
def create_AutoRecon2(name="AutoRecon2", longitudinal=False,
1414
plugin_args=None, fsvernum=5.3,
15-
stop=None, shrink=None):
15+
stop=None, shrink=None, distance=None):
1616
# AutoRecon2
1717
# Workflow
1818
ar2_wf = pe.Workflow(name=name)

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def checkarg(arg, default):
260260
('awk_file', 'inputspec.awk_file')])])
261261
# create AutoRecon2
262262
ar2_wf, ar2_outputs = create_AutoRecon2(plugin_args=plugin_args, fsvernum=fsvernum,
263-
stop=stop, shrink=shrink)
263+
stop=stop, shrink=shrink, distance=distance)
264264
# connect inputs for AutoRecon2
265265
reconall.connect([(inputspec, ar2_wf, [('num_threads', 'inputspec.num_threads')]),
266266
(config_node, ar2_wf, [('reg_template_withskull',

0 commit comments

Comments
 (0)