Skip to content

Commit 06d5fbc

Browse files
ellisdgDavid Ellis
authored andcommitted
FIX: Connects 'nu' of autorecon1 to autorecon2.
1 parent 3d60d7d commit 06d5fbc

File tree

1 file changed

+4
-1
lines changed
  • nipype/workflows/smri/freesurfer

1 file changed

+4
-1
lines changed

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def checkarg(arg, default):
258258
(config_node, ar1_wf, [('reg_template_withskull',
259259
'inputspec.reg_template_withskull'),
260260
('awk_file', 'inputspec.awk_file')])])
261-
262261
# create AutoRecon2
263262
ar2_wf, ar2_outputs = create_AutoRecon2(plugin_args=plugin_args, fsvernum=fsvernum)
264263
# connect inputs for AutoRecon2
@@ -269,6 +268,10 @@ def checkarg(arg, default):
269268
(ar1_wf, ar2_wf, [('outputspec.brainmask', 'inputspec.brainmask'),
270269
('outputspec.talairach', 'inputspec.transform'),
271270
('outputspec.orig', 'inputspec.orig')])])
271+
272+
if fsvernum < 6:
273+
reconall.connect([(ar1_wf, ar2_wf, [('outputspec.nu', 'inputspec.nu')])])
274+
272275
# create AutoRecon3
273276
ar3_wf, ar3_outputs = create_AutoRecon3(plugin_args=plugin_args, th3=th3,
274277
exvivo=exvivo, entorhinal=entorhinal)

0 commit comments

Comments
 (0)