Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Multiple T2ws, coerce reference to string #333

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nibabies/workflows/anatomical/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ def init_infant_anat_wf(

(t2w_template_wf, t2w_preproc_wf, [("outputnode.anat_ref", "inputnode.in_anat")]),
(t2w_template_wf, anat_derivatives_wf, [
("outputnode.anat_valid_list", "inputnode.t2w_source_files")]),
("outputnode.anat_valid_list", "inputnode.t2w_source_files"),
("outputnode.anat_realign_xfm", "inputnode.t2w_ref_xfms")]),

(t1w_preproc_wf, coregistration_wf, [("outputnode.anat_preproc", "inputnode.in_t1w")]),
(t1w_preproc_wf, coreg_report_wf, [("outputnode.anat_preproc", "inputnode.t1w_preproc")]),
Expand Down
4 changes: 2 additions & 2 deletions nibabies/workflows/anatomical/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
(anat_reorient, applyxfm_aseg, [('out_file', 'reference_image')]),
(aseg_xfm, applyxfm_aseg, [('out', 'transforms')]),
(applyxfm_aseg, aseg_reorient, [('output_image', 'in_file')]),
(applyxfm_aseg, outputnode, [('out_file', 'anat_aseg')]),
(aseg_reorient, outputnode, [('out_file', 'anat_aseg')]),
])
# fmt:on

Expand Down Expand Up @@ -305,4 +305,4 @@


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

Check warning on line 308 in nibabies/workflows/anatomical/template.py

View check run for this annotation

Codecov / codecov/patch

nibabies/workflows/anatomical/template.py#L308

Added line #L308 was not covered by tests