Skip to content

Commit fd66f7c

Browse files
authored
enh: flexibilize "sophisticated" pepolar to allow monomodal execution
1 parent 2e4f921 commit fd66f7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fmriprep/workflows/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,10 @@ def init_single_subject_wf(subject_id: str):
580580
suffices = [s.suffix for s in estimator.sources]
581581

582582
if estimator.method == fm.EstimatorType.PEPOLAR:
583-
if len(suffices) == 2 and all(suf in ('epi', 'bold', 'sbref') for suf in suffices):
583+
if (
584+
len(set(suffices)) == 1
585+
or (len(suffices) == 2 and all(suf in ('epi', 'bold', 'sbref') for suf in suffices))
586+
):
584587
wf_inputs = getattr(fmap_wf.inputs, f'in_{estimator.bids_id}')
585588
wf_inputs.in_data = [str(s.path) for s in estimator.sources]
586589
wf_inputs.metadata = [s.metadata for s in estimator.sources]

0 commit comments

Comments
 (0)