Skip to content

Commit

Permalink
fix: propagate the SDC warp to resampling node also with ME
Browse files Browse the repository at this point in the history
This connection can (should) be shared by both the SE and the ME paths.
That said, SDCFlows needs to be revised (nipreps/sdcflows#245) so that
fieldmaps without HMC are generated (and remove that ``_pop`` from this
connection).

Ammends: #2576.
  • Loading branch information
oesteban committed Oct 20, 2021
1 parent 3f985d6 commit 8216eb1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,17 +1101,16 @@ def init_func_preproc_wf(bold_file, has_fieldmap=False):
(("outputnode.fieldwarp", _pop), "inputnode.fieldwarp"),
]),
(unwarp_wf, bold_final, [("outputnode.corrected", "bold")]),

(unwarp_wf, bold_t1_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", _pop), "inputnode.fieldwarp"),
]),
])
# fmt:on

if not multiecho:
# fmt:off
workflow.connect([
(unwarp_wf, bold_t1_trans_wf, [
# TEMPORARY: For the moment we can't use frame-wise fieldmaps
(("outputnode.fieldwarp", _pop), "inputnode.fieldwarp"),
]),
(bold_split, unwarp_wf, [
("out_files", "inputnode.distorted")]),
])
Expand Down

0 comments on commit 8216eb1

Please sign in to comment.