mne.write_events

mne.write_events(filename, event_list)[source]

Write events to file.

Parameters
filenamestr

Name of the output file. If the extension is .fif, events are written in binary FIF format, otherwise (e.g., .eve, .lst, .txt) events are written as plain text. Note that new format event files do not contain the “time” column (used to be the second column).

event_listarray, shape (n_events, 3)

The list of events

See also

read_events

Examples using mne.write_events