From 8216eb17d02c7d3c590a968a29c77918278263db Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Wed, 20 Oct 2021 10:20:41 +0200 Subject: [PATCH] fix: propagate the SDC warp to resampling node also with ME 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. --- fmriprep/workflows/bold/base.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fmriprep/workflows/bold/base.py b/fmriprep/workflows/bold/base.py index d0af5772c..684691c79 100644 --- a/fmriprep/workflows/bold/base.py +++ b/fmriprep/workflows/bold/base.py @@ -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")]), ])