Skip to content

Commit ed1e936

Browse files
committed
fix: Pass fmap_id and sdc_method
1 parent bdc44f0 commit ed1e936

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fmriprep/workflows/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,13 +733,15 @@ def init_single_subject_wf(
733733
'fmap_ref': 'fmap_derivatives_wf.ds_reference.out_file',
734734
'fmap_coeff': 'fmap_derivatives_wf.ds_coeff.out_file',
735735
'fmap_mask': 'outputnode.fmap_mask',
736+
'fmap_id': 'outputnode.fmap_id',
737+
'sdc_method': 'outputnode.method',
736738
}
737739

738740
workflow.connect([
739741
(fmap_wf, fmap_buffers[field], [
740742
# We get "sdc_method" as "method" from estimator workflows
741743
# All else stays the same, and no other sdc_ prefixes are used
742-
(output_map[field.removeprefix('sdc_')], 'in2')
744+
(output_map[field], 'in2')
743745
# (f'outputnode.{field.removeprefix("sdc_")}', 'in2'),
744746
])
745747
for field in fmap_buffers

0 commit comments

Comments
 (0)