mne.concatenate_events

mne.concatenate_events(events, first_samps, last_samps)[source]

Concatenate event lists to be compatible with concatenate_raws.

This is useful, for example, if you processed and/or changed events in raw files separately before combining them using mne.concatenate_raws().

Parameters
eventslist of array

List of event arrays, typically each extracted from a corresponding raw file that is being concatenated.

first_sampslist or array of int

First sample numbers of the raw files concatenated.

last_sampslist or array of int

Last sample numbers of the raw files concatenated.

Returns
eventsarray

The concatenated events.

Examples using mne.concatenate_events