EyeLinkOgamaConnector is a Python script, which reads converted log files from EyeLink to create a .csv compatible with Ogama.
Disclaimer 1: The code is very specific to our use case and may need substantial changes to work with other setups. Disclaimer 2: I am not a Python programmer. I'm always grateful for feedback on how to improve my code.
The project should run in any Python 3.6 environment. It was developed with the PyCharms IDE.
Sample data for participant p01 is provided, you should be able to run the script without any changes for this demo case.
- All files are in the same directory
- EyeLink eye-tracking log:
*participant_id*.asc - [Optional] Response:
*participant_id*_response.log - [Optional] Physio:
*participant_id*_physio.log
Before starting the Python script, prepare the data.
- Get
.edflog file from EyeLink - Convert
.edffile to an ASCII-file.ascwith EyeLink'sedf2asc-Tool. - Move
.ascfile to the project's/inputfolder - [Optional] Add physio and response log files according to the conventions above
Next, use EyeLinkOgamaConnector:
- Check and make necessary configuration adjustments to
OgamaConnector.py - Run
OgamaConnector.py
Possible usages after everything is done:
- Import to Ogama with the output
.csvfile - Use analysis scripts/pipeline directly on the
.csvfile (see related repositories)
MIT License
Copyright (c) 2017 Norman Peitek