Skip to content

Commit

Permalink
FIX: Fieldmap files can also be paired (PEPOLAR)
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 8, 2022
1 parent f2562ad commit 1351907
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdcflows/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1351907

Please sign in to comment.