mne.io.read_annotations_eeglab

mne.io.read_annotations_eeglab(fname, uint16_codec=None)[source]

Create Annotations from EEGLAB file.

This function reads the event attribute from the EEGLAB structure and makes an mne.Annotations object.

Parameters:
fname : str | object

The path to the (EEGLAB) .set file.

uint16_codec : str | None

If your *.set file contains non-ascii characters, sometimes reading it may fail and give rise to error message stating that “buffer is too small”. uint16_codec allows to specify what codec (for example: ‘latin1’ or ‘utf-8’) should be used when reading character arrays and can therefore help you solve this problem.

Returns:
annotations : instance of Annotations

The annotations present in the file.