Skip to content

Commit

Permalink
Change warn to Runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
withmywoessner committed Oct 6, 2023
1 parent e3a0b0b commit f2a7aab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mne/export/_edf.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ def _export_raw(fname, raw, physical_range, add_ch_type):
try:
hdl.writeAnnotation(onset, duration, desc + f"@@{ch_name}")
except Exception:
warn(
f"Setting measurement date to {meas_date} "
f"returned an error"
)

raise RuntimeError(
f"writeAnnotation() returned an error "
f"trying to write {desc} at {onset} "
f"for {duration} seconds."
)
del hdl

0 comments on commit f2a7aab

Please sign in to comment.