Skip to content

Commit

Permalink
FIX: Ensure mask input is used
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Aug 28, 2023
1 parent 988fffa commit b6838ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nibabies/workflows/anatomical/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ def init_coregistration_wf(
thr_mask = pe.Node(Binarize(thresh_low=0.80), name="thr_mask")
# fmt:off
workflow.connect([
(inputnode, reg_mask, [("in_mask", "in_file")]),
(inputnode, refine_mask, [("in_mask", "in_file")]),
(inputnode, map_mask, [
("in_t1w", "reference_image"),
("in_probmap", "input_image")]),
(inputnode, reg_mask, [("in_mask", "in_file")]),
(inputnode, refine_mask, [("in_mask", "in_file")]),
(coreg, map_mask, [
("reverse_transforms", "transforms"),
("reverse_invert_flags", "invert_transform_flags")]),
Expand All @@ -219,6 +219,8 @@ def init_coregistration_wf(
)
# fmt:off
workflow.connect([

Check warning on line 221 in nibabies/workflows/anatomical/registration.py

View check run for this annotation

Codecov / codecov/patch

nibabies/workflows/anatomical/registration.py#L221

Added line #L221 was not covered by tests
(inputnode, reg_mask, [("in_mask", "in_file")]),
(inputnode, refine_mask, [("in_mask", "in_file")]),
(inputnode, map_precomp_mask, [
('in_t1w', 'reference_image'),
('in_mask', 'input_image')]),
Expand Down

0 comments on commit b6838ef

Please sign in to comment.