From 1351907238fc90a135791fb3968e73e87ebe766a Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 8 Dec 2022 08:56:14 -0500 Subject: [PATCH] FIX: Fieldmap files can also be paired (PEPOLAR) --- sdcflows/workflows/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdcflows/workflows/base.py b/sdcflows/workflows/base.py index a04da74cfd..7c9c609d10 100644 --- a/sdcflows/workflows/base.py +++ b/sdcflows/workflows/base.py @@ -87,13 +87,15 @@ def init_fmap_preproc_wf( workflow = Workflow(name=name) - out_fields = ("fmap", "fmap_ref", "fmap_coeff", "fmap_mask", "fmap_id", "method") + out_fields = ("fmap", "fmap_coeff", "fmap_ref", "fmap_mask", "fmap_id", "method") out_merge = { f: pe.Node(niu.Merge(len(estimators)), name=f"out_merge_{f}") for f in out_fields } - # Multiple coefficients can be provided per-fieldmap (low and high spatial frequency) + # Fieldmaps and coefficient files can come in pairs, ensure they are not flattened + out_merge["fmap"].inputs.no_flatten = True out_merge["fmap_coeff"].inputs.no_flatten = True + outputnode = pe.Node(niu.IdentityInterface(fields=out_fields), name="outputnode") workflow.connect(