marcus-nystrom / Titta

Python and PsychoPy interface to Tobii eye trackers using Tobii Pro SDK
Other
61 stars 25 forks source link

merge msg_data and gaze_data into one file #16

Closed amandasaksida closed 1 year ago

amandasaksida commented 2 years ago

Hi, i'm a newbie both to psychopy and titta, and have a possibly trivial question. Following the examples in the demos, i have created two separate dataframes for gaze_data and tracker messages at the end of the experiment, written into two separate tsv files. How do i join them in one file (with one single system_time_stamp column)? Thank you in advance! Amanda

marcus-nystrom commented 2 years ago

Hi Amanda,

Please have a look at https://github.com/marcus-nystrom/Titta/blob/master/resources/extract_trial_data_and_detect_fixations.py

The function 'Textract_trial_data' shows how to extract eye tracking data associated with a certain message.

Marcus

On Tue, Dec 7, 2021 at 10:12 PM amandasaksida @.***> wrote:

Hi, i'm a newbie both to psychopy and titta, and have a possibly trivial question. Following the examples in the demos, i have created two separate dataframes for gaze_data and tracker messages at the end of the experiment, written into two separate tsv files. How do i join them in one file (with one single system_time_stamp column)? Thank you in advance! Amanda

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marcus-nystrom/Titta/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD57FB3PIDBWZPTJDJ672KTUPZ2DPANCNFSM5JSGYFQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

amandasaksida commented 2 years ago

Hi Marcus, thanks for the info; all clear now. Amanda