pupil_recording_interface.MotionRecorder
- class pupil_recording_interface.MotionRecorder(folder, motion_type, name=None, **kwargs)
Bases:
pupil_recording_interface.process.recorder.BaseRecorder
Recorder for a motion stream.
- __init__(folder, motion_type, name=None, **kwargs)
Constructor.
Methods
Config
(*args, **kwargs)Configuration for this class.
__init__
(folder, motion_type[, name])Constructor.
from_config
(config, stream_config, device, …)Create a process from a ProcessConfig.
process
(packet, notifications)Process new data.
process_notifications
(notifications)Process new notifications.
process_packet
(packet)Process a new packet.
start
()Start the recorder.
stop
()Stop the recorder.
write
(data)Write data to disk.
Attributes
process_type
- classmethod Config(*args, **kwargs)
Configuration for this class.
- classmethod from_config(config, stream_config, device, **kwargs)
Create a process from a ProcessConfig.
- process(packet, notifications)
Process new data.
- process_notifications(notifications)
Process new notifications.
- process_packet(packet)
Process a new packet.
- start()
Start the recorder.
- stop()
Stop the recorder.
- write(data)
Write data to disk.