mne.io.
read_events_eeglab
(eeg, event_id=None, event_id_func='strip_to_integer', uint16_codec=None)[source]¶Create events array from EEGLAB structure.
An event array is constructed by looking up events in the event_id, trying to reduce them to their integer part otherwise, and entirely dropping them (with a warning) if this is impossible. Returns a 1x3 array of zeros if no events are found.
Usually, the EEGLAB readers will automatically construct event information for you. However, the reader for continuous data stores event information in the stimulus channel, which can only code one event per time sample. Use this function if your EEGLAB file has events happening at the same time (sample) point to manually create an events array.
Parameters: | eeg : str | object
event_id : dict | None
event_id_func : None | str | callable
uint16_codec : str | None
|
---|---|
Returns: | events : array, shape = (n_events, 3)
|
See also
mne.find_events