pupil_recording_interface.load_gaze
- pupil_recording_interface.load_gaze(folder, source='recording', cache=False)
Load gaze data as an xarray.Dataset.
- Parameters
folder (str or pathlib.Path) – Path to the recording folder.
source (str, default "recording") – The source of the gaze 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.cache (bool, default False) – If True, cache the dataset as a netCDF file in the recording folder.
- Returns
The gaze data as a dataset.
- Return type
xarray.Dataset