File IO

eog-learn provides some helper functions for reading data from open-access EEG-eyetracking datasets.

eoglearn.io.eegeyenet.get_dot_positions()

Get the x/y pixel coordinates of the dots in the EEGEyeNet dots dataset.

Returns:
tar_pos_dictdict

dictionary where the keys are the event triggers ('1', '2', …, '27'), and the values are arrays of shape (2,), indicating the x/y positions of the dot shown on the screen.

eoglearn.io.eegeyenet.read_raw_eegeyenet(fname)

Load a sample file from the EEG Eyenet dataset.

Parameters:
fnamestr | pathlib.Path

Path to the EEGEyeNet file to load. EEGEyeNet files can be downloaded with fetch_eegeyenet().

Returns:
mne.io.Raw

Raw object containing the EEG data.