pupil_recording_interface.MotionReader
- class pupil_recording_interface.MotionReader(folder, stream='odometry', source='recording')
Reader for odometry data.
- __init__(folder, stream='odometry', source='recording')
Constructor.
- Parameters
folder (str or pathlib.Path) – Path to the recording folder.
stream (str, default 'odometry') – The motion stream to read. Can be ‘odometry’, ‘accel’ or ‘gyro’.
source (str, default 'recording') – The source of the data. So far, only ‘recording’ is supported.
Methods
__init__
(folder[, stream, source])Constructor.
Load motion 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.