Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions fmriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,16 @@ def init_single_subject_wf(
fieldmap_id = estimator_map.get(bold_file)
jacobian = False

if len(bold_series) == 2:
# This should only be reached if two-echo data are provided and echo-idx is not.
# Raise an error in this case, until we figure out how to support two-echo data.
bold_series_str = '\n\t'.join(bold_series)
raise RuntimeError(
'This BOLD series contains two echoes, which fMRIPrep does not support:\n'
f'\t{bold_series_str}\n'
'Please set "--echo-idx" to process one echo at a time.'
)

if fieldmap_id:
if 'fmap-jacobian' in config.workflow.force:
jacobian = True
Expand Down