Skip to content

Commit

Permalink
FIX: Connect bold_mask to bold_t2s_wf
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 15, 2023
1 parent 4564048 commit d4a84ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def init_bold_wf(
workflow.connect([
(bold_fit_wf, bold_native_wf, [
("outputnode.coreg_boldref", "inputnode.boldref"),
("outputnode.bold_mask", "inputnode.bold_mask"),
("outputnode.motion_xfm", "inputnode.motion_xfm"),
("outputnode.boldref2fmap_xfm", "inputnode.fmapreg_xfm"),
("outputnode.dummy_scans", "inputnode.dummy_scans"),
Expand Down
1 change: 1 addition & 0 deletions fmriprep/workflows/bold/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ def init_bold_native_wf(
# Do NOT set motion_xfm or fieldmap_id on outputnode
# This prevents downstream resamplers from double-dipping
workflow.connect([
(inputnode, bold_t2s_wf, [("bold_mask", "inputnode.bold_mask")]),
(boldref_bold, join_echos, [("out_file", "bold_files")]),
(join_echos, bold_t2s_wf, [("bold_files", "inputnode.bold_file")]),
(join_echos, outputnode, [("bold_files", "bold_echos")]),
Expand Down

0 comments on commit d4a84ad

Please sign in to comment.