pupil_recording_interface.load_motion

pupil_recording_interface.load_motion(folder, stream='odometry', cache=False)

Load pupil data as an xarray.Dataset.

Parameters
  • folder (str or pathlib.Path) – Path to the recording folder.

  • stream (str, default "odometry") – The motion stream to load.

  • cache (bool, default False) – If True, cache the dataset as a netCDF file in the recording folder.

Returns

The pupil data as a dataset.

Return type

xarray.Dataset