mne.make_fixed_length_events¶
-
mne.
make_fixed_length_events
(raw, id=1, start=0, stop=None, duration=1.0, first_samp=True, overlap=0.0)[source]¶ Make a set of events separated by a fixed duration.
- Parameters
- rawinstance of
Raw
A raw object to use the data from.
- id
int
The id to use (default 1).
- 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.
- first_sampbool
If True (default), times will have raw.first_samp added to them, as in
mne.find_events()
. This behavior is not desirable if the returned events will be combined with event times that already haveraw.first_samp
added to them, e.g. event times that come frommne.find_events()
.- overlap
float
The overlap between events. Must be
0 <= overlap < duration
.New in version 0.18.
- rawinstance of
- Returns
- new_events
array
The new events.
- new_events