We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c6dfd commit 1ea45f4Copy full SHA for 1ea45f4
fmriprep/workflows/base.py
@@ -834,6 +834,16 @@ def init_single_subject_wf(
834
fieldmap_id = estimator_map.get(bold_file)
835
jacobian = False
836
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
+
847
if fieldmap_id:
848
if 'fmap-jacobian' in config.workflow.force:
849
jacobian = True
0 commit comments