From fd66f7c827841624766431205e81c005a39924fa Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Sun, 3 Nov 2024 09:01:42 +0100 Subject: [PATCH] enh: flexibilize "sophisticated" pepolar to allow monomodal execution --- fmriprep/workflows/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fmriprep/workflows/base.py b/fmriprep/workflows/base.py index 01664861..22fb0b72 100644 --- a/fmriprep/workflows/base.py +++ b/fmriprep/workflows/base.py @@ -580,7 +580,10 @@ def init_single_subject_wf(subject_id: str): suffices = [s.suffix for s in estimator.sources] if estimator.method == fm.EstimatorType.PEPOLAR: - if len(suffices) == 2 and all(suf in ('epi', 'bold', 'sbref') for suf in suffices): + if ( + len(set(suffices)) == 1 + or (len(suffices) == 2 and all(suf in ('epi', 'bold', 'sbref') for suf in suffices)) + ): wf_inputs = getattr(fmap_wf.inputs, f'in_{estimator.bids_id}') wf_inputs.in_data = [str(s.path) for s in estimator.sources] wf_inputs.metadata = [s.metadata for s in estimator.sources]