mne.pick_events#
- mne.pick_events(events, include=None, exclude=None, step=False)[source]#
Select some events.
- Parameters
- events
array
ofint
, 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.
- include
int
|list
|None
A event id to include or a list of them. If None all events are included.
- exclude
int
|list
|None
A event id to exclude or a list of them. If None no event is excluded. If include is not None the exclude parameter is ignored.
- stepbool
If True (default is False), events have a step format according to the argument output=’step’ in the function find_events(). In this case, the two last columns are considered in inclusion/ exclusion criteria.
- events
- Returns
- events
array
, shape (n_events, 3) The list of events.
- events
Examples using mne.pick_events
#
Working with events
Visualizing epoched data