feat: Parse SMI BeGaze raw data files #1013
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Read BeGaze text files. Not aiming for full support for now (I don't have enough data for testing), but at least the raw samples and events in DIDEC should be parsed successfully (#980).
Documentation on file format: https://psychologie.unibas.ch/fileadmin/user_upload/psychologie/Forschung/N-Lab/SMI_BeGaze_Manual.pdf#page=343.21
#945 should be merged first (so that events can be implemented and tested the same way as for EyeLink)
Fixes #981
Implemented changes
Insert a description of the changes implemented in the pull request.
parse_begaze()
likeparse_eyelink()
from_begaze()
likefrom_asc()
from_begaze()
when loading datasets, even if the file extension is.txt
(currently they are routed throughfrom_csv()
, not sure if this behavior is required by other datasets)Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
test_parse_begaze()
test_parse_begaze()
after feat: parse eyelink events #945 is mergedChecklist: