Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: parse eyelink events #945

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
pre-commit-ci[bot] committed Feb 12, 2025
commit 068e84f689f35c6b3f5ca2ff46b6415fc26f0217
2 changes: 1 addition & 1 deletion src/pymovements/gaze/io.py
Original file line number Diff line number Diff line change
@@ -25,10 +25,10 @@

import polars as pl

from pymovements.events.frame import EventDataFrame
from pymovements.gaze.experiment import Experiment
from pymovements.gaze.eyetracker import EyeTracker
from pymovements.gaze.gaze_dataframe import GazeDataFrame # pylint: disable=cyclic-import
from pymovements.events.frame import EventDataFrame
from pymovements.utils.parsing import parse_eyelink


4 changes: 2 additions & 2 deletions tests/unit/utils/parsing_test.py
Original file line number Diff line number Diff line change
@@ -157,12 +157,12 @@

EXPECTED_EVENT_DF = pl.from_dict(
{
'name': ["fixation_eyelink", "blink_eyelink", "saccade_eyelink"],
'name': ['fixation_eyelink', 'blink_eyelink', 'saccade_eyelink'],
'onset': [10000000.0, 10000020.0, 10000011.0],
'offset': [10000008.0, 10000022.0, 10000022.0],
'task': [None, None, 'B'],
'trial_id': [None, None, '2'],
}
},
)

EXPECTED_METADATA = {