Skip to content

Commit 1ea45f4

Browse files
tsaloeffigies
authored andcommitted
Reproduce #3569.
1 parent e3c6dfd commit 1ea45f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fmriprep/workflows/base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,16 @@ def init_single_subject_wf(
834834
fieldmap_id = estimator_map.get(bold_file)
835835
jacobian = False
836836

837+
if len(bold_series) == 2:
838+
# This should only be reached if two-echo data are provided and echo-idx is not.
839+
# Raise an error in this case, until we figure out how to support two-echo data.
840+
bold_series_str = '\n\t'.join(bold_series)
841+
raise RuntimeError(
842+
'This BOLD series contains two echoes, which fMRIPrep does not support:\n'
843+
f'\t{bold_series_str}\n'
844+
'Please set "--echo-idx" to process one echo at a time.'
845+
)
846+
837847
if fieldmap_id:
838848
if 'fmap-jacobian' in config.workflow.force:
839849
jacobian = True

0 commit comments

Comments
 (0)