eye tribe output and opensesame
Hello! I am new to the OpenSesame and eye tribe world and truly impressed with the amazing things that you can do! i come from Tobii + Eprime background. Recently, I tested the eye tribe with a simple PpenSesame task. Everything works out nicely. I have some issues in understanding the best way to code the output (attached an example). For my research, i am mainly interested in fixation duration and count. I thought that maybe I could write some functions in excel to name each of my two AOIs, but advised that this is prone to mistakes and it is not convenient, especially when the design gets more complex. Do you recommend other ways to clean up the data?
Thank you in advance!
Cheers,
Andrea
Comments
Hi Andrea,
Good to see you on the forum! This is probably a common situation, so here's a script that does essentially what you want:
This script uses
DataMatrix
, which is a simplified way to work with this kinds of tabular data. (I designed it essentially for OpenSesame and my own analyses.) The basic usage is explained in this notebook:DataMatrix is not a default part of Python, but you can install through
pip install python-datamatrix
.Cheers!
Sebastiaan
Dear Sebastiaan, many many thanks that was very useful! i do not have much experience with Python (yet) so I am still struggling with installing packages in the shell. Once I ll solve this I will try out the code above! Thank you again for your help!
You could even run this from within OpenSesame, by putting the code in an
inline_script
, selecting it, and clicking the 'Run selected text' button at the top-right. Not necessarily the most convenient in the long run. But possible.Hi Sebastiaan, your script seems to be very helpful, thank you a lot for providing it...I'm trying to do this my self since days without success (not the greatest programmer...) Unfortunately, I only get the headers in the output file and I have no real clue what is going on
I cannot attach one of my output tsv here because they are too big. I get no error message, only warnings:
C:\Users\schischi\Anaconda3\lib\site-packages\datamatrix\py3compat.py:91: UserWarning: Some rows miss column rawx
warnings.warn(safe_str(msg), *args)
And this for every column...I would be grateful for any help or suggestions!
Thank you,
Cathi
Edit: here is dropbox link to one of my file https://www.dropbox.com/sh/89hilbno4fayoej/AAA8M0MClTWeThobYHV85Pgja?dl=0
Sorry, I was just incredibly stupid...I tried nearly everything...and then I realized that I only had to change 'FALSE' in 'False'
Just came across with @sebastiaan 's code snippet. I found it to be very useful. My question is: I noticed that the fixation's coordinate and the pupil size were the median of samples - is this usually how EyeTribe data is handled? For now, I'm importing the raw gaze data to OGAMA (http://www.ogama.net/) just to detect the fixations and then export the event data, which is very inefficient...
Thanks for your help!
There is no established standard for the EyeTribe per se, but a median is simply more robust to noise. So therefore I would use the median in these kinds of cases.
I should also point out that I wrote a Python parser for EyeLink, EyeTribe, and SMI data files (it was originally only for the EyeLink, hence the name):
It's not documented very well, and for the moment I don't intend to actively support it. But it's still easier than writing custom scripts.