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_dict
dict 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.
- tar_pos_dict
- eoglearn.io.eegeyenet.read_raw_eegeyenet(fname)¶
Load a sample file from the EEG Eyenet dataset.
- Parameters:
- fname
str|pathlib.Path Path to the EEGEyeNet file to load. EEGEyeNet files can be downloaded with
fetch_eegeyenet().
- fname
- Returns:
mne.io.RawRaw object containing the EEG data.