Skip to content

Commit ce8a0df

Browse files
author
David Ellis
committed
FIX: Changes orig_nu.mgz to nu.mgz for the input to EM_register.
1 parent 2c1c045 commit ce8a0df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,12 @@ def awkfile(in_file, log_file):
386386
if plugin_args:
387387
mri_em_register.plugin_args = plugin_args
388388

389-
ar1_wf.connect([(add_xform_to_orig_nu, mri_em_register, [('out_file', 'in_file')]),
390-
(inputspec, mri_em_register, [('num_threads', 'num_threads'),
389+
if fsvernum < 6:
390+
ar1_wf.connect(add_to_header_nu, 'out_file', mri_em_register, 'in_file')
391+
else:
392+
ar1_wf.connect(add_xform_to_orig_nu, 'out_file', mri_em_register, 'in_file')
393+
394+
ar1_wf.connect([(inputspec, mri_em_register, [('num_threads', 'num_threads'),
391395
('reg_template_withskull', 'template')])])
392396

393397
brainmask = pe.Node(WatershedSkullStrip(),

0 commit comments

Comments
 (0)