visigoth.eyetracker.EyeTracker¶
- class visigoth.eyetracker.EyeTracker(exp, edf_stem='eyedat')[source]¶
Interface to EyeLink eyetracker.
The main reason for the additional layer of complexity is to allow simple eyetracker simulation with the mouse in a way that is transparent to the experiment code. This object also has some helpful interface functions, allows for dynamic offset values, and it maintains a log of samples.
- __init__(exp, edf_stem='eyedat')[source]¶
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(exp[, edf_stem])Initialize self.
check_eye_open([new_sample, log])Return True if we get a valid sample of the eye position.
check_fixation([pos, radius, new_sample, log])Return True if eye is in the fixation window.
close_connection()Close down the connection to Eyelink and save the eye data.
last_valid_sample([apply_offsets])Return the timestamp and position of the last valid gaze sample.
read_gaze([log, apply_offsets])Return the position of gaze in degrees, subject to offsets.
run_calibration()Execute the eyetracker setup (principally calibration) procedure.
send_message(msg)Send a message to the eyetracker, or no-op in simulation mode.
setup_eyelink()Connect to the EyeLink box at given host address and run setup.
shutdown()Handle all of the things that need to happen when ending a run.
start_run()Turn on recording mode and sync with the eyelink log.
update_params()Update params by reading data from client.
write_log_data()Save the low temporal resolution eye tracking data.