mne.
merge_events
Merge a set of events
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.
new_events: array :
The new events