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.

idint

The id to use (default 1).

startfloat

Time of first event (in seconds).

stopfloat | None

Maximum time of last event (in seconds). If None, events extend to the end of the recording.

durationfloat

The duration to separate events by (in seconds).

first_sampbool

If True (default), times will have 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 have first_samp added to them, e.g. event times that come from mne.find_events().

overlapfloat

The overlap between events (in seconds). Must be 0 <= overlap < duration.

New in v0.18.

Returns:
eventsarray of int, shape (n_events, 3)

The array of events. The first column contains the event time in samples, with first_samp included. The third column contains the event id.

Examples using mne.make_fixed_length_events#

Overview of MEG/EEG analysis with MNE-Python

Overview of MEG/EEG analysis with MNE-Python

Parsing events from raw data

Parsing events from raw data

Working with events

Working with events

Rejecting bad data spans and breaks

Rejecting bad data spans and breaks

Creating MNE-Python data structures from scratch

Creating MNE-Python data structures from scratch

Continuous Target Decoding with SPoC

Continuous Target Decoding with SPoC

Compute Spectro-Spatial Decomposition (SSD) spatial filters

Compute Spectro-Spatial Decomposition (SSD) spatial filters