Skip to content

Commit c1f8aed

Browse files
author
David Ellis
committed
FIX: fixes connections ar1
1 parent 97e1021 commit c1f8aed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,14 @@ def awkfile(in_file, log_file):
343343
MNIBiasCorrection(), name="Intensity_Correction")
344344
intensity_correction.inputs.out_file = 'nu.mgz'
345345
intensity_correction.inputs.iterations = 2
346-
ar2_wf.connect([(inputspec, intensity_correction, [('orig', 'in_file'),
347-
('brainmask', 'mask'),
348-
('transform', 'transform')])])
346+
ar1_wf.connect([(add_xform_to_orig, intensity_correction, [('out_file', 'in_file')]),
347+
(copy_transform, intensity_correction, [('transform', 'transform')])])
349348

350349

351350
add_to_header_nu = pe.Node(AddXFormToHeader(), name="Add_XForm_to_NU")
352351
add_to_header_nu.inputs.copy_name = True
353352
add_to_header_nu.inputs.out_file = 'nu.mgz'
354-
ar2_wf.connect([(intensity_correction, add_to_header_nu, [('out_file', 'in_file'),
353+
ar1_wf.connect([(intensity_correction, add_to_header_nu, [('out_file', 'in_file'),
355354
]),
356355
(copy_transform, add_to_header_nu,
357356
[('out_file', 'transform')])

0 commit comments

Comments
 (0)