mne.event.shift_time_events

mne.event.shift_time_events(events, ids, tshift, sfreq)[source]

Shift an event.

Parameters
eventsarray, shape=(n_events, 3)

The events.

idsndarray of int | None

The ids of events to shift.

tshiftfloat

Time-shift event. Use positive value tshift for forward shifting the event and negative value for backward shift.

sfreqfloat

The sampling frequency of the data.

Returns
new_eventsarray

The new events.