mne.make_fixed_length_events

mne.make_fixed_length_events(raw, id, start=0, stop=None, duration=1.0)

Make a set of events separated by a fixed duration

Parameters:

raw : instance of Raw

A raw object to use the data from.

id : int

The id to use.

start : float

Time of first event.

stop : float | None

Maximum time of last event. If None, events extend to the end of the recording.

duration: float :

The duration to separate events by.

Returns:

new_events : array

The new events.