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

Add GazeDataFrame.compute_event_properties() #871

Open
2 tasks
dkrako opened this issue Oct 23, 2024 · 0 comments
Open
2 tasks

Add GazeDataFrame.compute_event_properties() #871

dkrako opened this issue Oct 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dkrako
Copy link
Contributor

dkrako commented Oct 23, 2024

Description of the problem

Computing event properties is currently only implemented as a Dataset method

If we are working just with a single GazeDataFrame and not with Dataset then we would need an equivalent GazeDataFrame.compute_event_properties().

Description of a solution

Reuse the code from compute_event_properties.

Then refactor the original code in Dataset to call the new GazeDataFrame.compute_event_properties().

Minimum acceptance criteria

  • implement GazeDataFrame.compute_event_properties()
  • reuse GazeDataFrame.compute_event_properties() in Dataset.compute_event_properties()

Sample Code

gaze = pm.gaze.from_csv('file.csv')
gaze.pix2deg()
gaze.pos2vel()
gaze.detect_events('ivt')
gaze.compute_event_properties(['amplitude', 'dispersion'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant