esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

Support for EyeLink DataViewer protocol #85

Open smathot opened 7 years ago

smathot commented 7 years ago

This issue mostly just something to think about.

Quite some people are using the EyeLink DataViewer for analysis. DataViewer uses a simple protocol that requires certain messages. For example, the start of a trial should be:

TRIALID [trialid]

Whereas the OpenSesame plugins use by default:

start_trial [trialid]

And variables are logged as:

!V TRIAL_VAR [name] [value]

Whereas PyGaze uses by default:

var [name] [value]

People can override our defaults, or they can override the DataViewer's defaults. But many people don't realize that, so it's not very user friendly. I'm wondering what the best way to deal with this is.

Thoughts?

esdalmaijer commented 7 years ago

Maybe automatically add an EyeLink-specific log message in the libeyelink implementation? This would mean two messages are logged at every call to the log method. Trial starts and ends we can add in the start/stop_recording methods.

These should then be ignored in PyGaze Analyser's read_edf function.