Skip to content

Commit 433d2a0

Browse files
committed
FIX: Do not flatten fieldmaps or coefficients into single list
1 parent b11551e commit 433d2a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdcflows/workflows/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ def init_fmap_preproc_wf(
8787

8888
workflow = Workflow(name=name)
8989

90-
out_fields = ("fmap", "fmap_ref", "fmap_coeff", "fmap_mask", "fmap_id", "method")
90+
out_fields = ("fmap", "fmap_coeff", "fmap_ref", "fmap_mask", "fmap_id", "method")
9191
out_merge = {
9292
f: pe.Node(niu.Merge(len(estimators)), name=f"out_merge_{f}")
9393
for f in out_fields
9494
}
95+
# Fieldmaps and coefficient files can come in pairs, ensure they are not flattened
96+
out_merge["fmap"].inputs.no_flatten = True
97+
out_merge["fmap_coeff"].inputs.no_flatten = True
98+
9599
outputnode = pe.Node(niu.IdentityInterface(fields=out_fields), name="outputnode")
96100

97101
workflow.connect(

0 commit comments

Comments
 (0)