Skip to content

Commit 8e24da0

Browse files
authored
Merge pull request #333 from mgxd/fix/multi-run-connections
FIX: Multiple T2ws, coerce reference to string
2 parents 22c6827 + b63301d commit 8e24da0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nibabies/workflows/anatomical/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ def init_infant_anat_wf(
285285

286286
(t2w_template_wf, t2w_preproc_wf, [("outputnode.anat_ref", "inputnode.in_anat")]),
287287
(t2w_template_wf, anat_derivatives_wf, [
288-
("outputnode.anat_valid_list", "inputnode.t2w_source_files")]),
288+
("outputnode.anat_valid_list", "inputnode.t2w_source_files"),
289+
("outputnode.anat_realign_xfm", "inputnode.t2w_ref_xfms")]),
289290

290291
(t1w_preproc_wf, coregistration_wf, [("outputnode.anat_preproc", "inputnode.in_t1w")]),
291292
(t1w_preproc_wf, coreg_report_wf, [("outputnode.anat_preproc", "inputnode.t1w_preproc")]),

nibabies/workflows/anatomical/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def init_anat_template_wf(
274274
(anat_reorient, applyxfm_aseg, [('out_file', 'reference_image')]),
275275
(aseg_xfm, applyxfm_aseg, [('out', 'transforms')]),
276276
(applyxfm_aseg, aseg_reorient, [('output_image', 'in_file')]),
277-
(applyxfm_aseg, outputnode, [('out_file', 'anat_aseg')]),
277+
(aseg_reorient, outputnode, [('out_file', 'anat_aseg')]),
278278
])
279279
# fmt:on
280280

@@ -305,4 +305,4 @@ def _set_threads(in_list, maximum):
305305

306306

307307
def get_reference(anatomicals: list, anat_reference: str) -> int:
308-
return anatomicals.index(anat_reference)
308+
return anatomicals.index(str(anat_reference))

0 commit comments

Comments
 (0)