mne.merge_events

mne.merge_events(events, ids, new_id, replace_events=True)

Merge a set of events

Parameters:

events : array

Events.

ids : array of int

The ids of events to merge.

new_id : int

The new id.

replace_events : bool

If True (default), old event ids are replaced. Otherwise, new events will be added to the old event list.

Returns:

new_events: array :

The new events