Skip to content

Commit 6b9703f

Browse files
committed
fix: Pass session_id to fieldmap finder
1 parent 7273193 commit 6b9703f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fmriprep/workflows/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ def init_single_subject_wf(
633633
all_estimators, estimator_map = map_fieldmap_estimation(
634634
layout=config.execution.layout,
635635
subject_id=subject_id,
636+
session_id=session_id,
636637
bold_data=bold_runs,
637638
ignore_fieldmaps='fieldmaps' in config.workflow.ignore,
638639
use_syn=config.workflow.use_syn_sdc,
@@ -943,6 +944,7 @@ def init_single_subject_wf(
943944
def map_fieldmap_estimation(
944945
layout: bids.BIDSLayout,
945946
subject_id: str,
947+
session_id: str | list[str] | None,
946948
bold_data: list[list[str]],
947949
ignore_fieldmaps: bool,
948950
use_syn: bool | str,
@@ -963,6 +965,7 @@ def map_fieldmap_estimation(
963965
fmap_estimators = find_estimators(
964966
layout=layout,
965967
subject=subject_id,
968+
session=[session_id] if isinstance(session_id, str) else session_id,
966969
fmapless=bool(use_syn) or (ignore_fieldmaps and force_syn),
967970
force_fmapless=force_syn or (ignore_fieldmaps and use_syn),
968971
bids_filters=filters,

0 commit comments

Comments
 (0)