Created
August 25, 2022 08:27
-
-
Save papr/6a204883392b51b22c9fdd33519d964e to your computer and use it in GitHub Desktop.
Extract eye tracking data recorded by PsychoPy ioHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
recording_hdf5 = pd.HDFStore(path_to_hdf5_file, "r") | |
binocular_data = recording_hdf5[ | |
"/data_collection/events/eyetracker/BinocularEyeSampleEvent" | |
] | |
monocular_data = recording_hdf5[ | |
"/data_collection/events/eyetracker/MonocularEyeSampleEvent" | |
] | |
binocular_data.to_csv("binocular_data.csv") | |
monocular_data.to_csv("binocular_data.csv") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandas | |
tables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment