pupil_recording_interface.GazeReader
- class pupil_recording_interface.GazeReader(folder, source='recording')
Reader for gaze data.
- __init__(folder, source='recording')
Constructor.
- Parameters
folder (str or pathlib.Path) – Path to the recording folder.
source (str or dict, default 'recording') – The source of the data. If ‘recording’, the recorded data will be used. Can also be the name of a gaze mapper or a dict in the format
{'2d': '<2d_gaze_mapper>', '3d': '<3d_gaze_mapper>'}
in which case the norm pos from the 2d mapper and the gaze point from the 3d mapper will be used.
Methods
__init__
(folder[, source])Constructor.
Load gaze data as an xarray Dataset.
load_pldata
(topic)Load data from a .pldata file as a list of dicts.
save_pldata
(topic, data)Save data from a list of dicts as a .pldata file.
write_netcdf
([filename])Export data to netCDF.
Attributes
export_name
Name of exported files.