Skip to content

Commit

Permalink
enh: flexibilize "sophisticated" pepolar to allow monomodal execution
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban authored Nov 3, 2024
1 parent 2e4f921 commit fd66f7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fmriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fd66f7c

Please sign in to comment.