-
Notifications
You must be signed in to change notification settings - Fork 17
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: Store metadata from ASC in experiment metadata #884
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #884 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 74 74
Lines 3372 3419 +47
Branches 594 613 +19
=========================================
+ Hits 3372 3419 +47 ☔ View full report in Codecov by Sentry. |
commit 14d047c Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 22:02:30 2024 +0200 Remove files from remote directory commit aa78078 Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 21:53:35 2024 +0200 updated code commit cae54cc Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 15:40:16 2024 +0200 changes in io.py file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you so much for your work! I have some minor change requests, but apart from these the PR is in very good shape.
I would like to include this PR in our upcoming release. This way we avoid the breaking change in the from_asc()
interface.
@SiQube @prassepaul What do you think of further delaying the release until this is merged?
Oh, my review did not take account of the changes you just pushed an hour ago. I hope this is not too confusing. |
@dkrako Thanks! Yes, it seems like we were working in parallel :D Working on the remaining changes now. Originally, we also wanted to store the calibrations and validations in the |
Yes let's store the calibrations and validations in a follow-up PR. As the gaze_df._metadata = metadata This way a (both very informed and impatient) user would still be able to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only some minor comments and questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no its a stupid bug the 0.06 come from the <py3.12 >=py3.12 ... |
@SiQube Found this error in the logs of the Codecov action:
The upload only succeeded for py311-macos, which is why the EDIT: I just noticed that a new version of the codecov upload action was released as our builds started failing. I suspect that codecov might have changed something about their upload API. I tried updating the action and now the error is different:
Maybe the problem is that the branch is on my fork and not on the main repository? |
Looks like upgrading and downgrading the codecov action did the trick 😅 |
* updated io file * updated test file * Add tests for metadata parsing from ASC file * Squashed commit of the following: commit 14d047c Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 22:02:30 2024 +0200 Remove files from remote directory commit aa78078 Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 21:53:35 2024 +0200 updated code commit cae54cc Author: Faizan Ansari <[email protected]> Date: Thu Oct 24 15:40:16 2024 +0200 changes in io.py file * Fix formatting * Fix indentation * Fix circular imports * 2 test passed * Fix attribute name * Refactor metadata checks, add tests * Fix f-strings * Fix tests * Address comments * Improve test coverage * Add comment about screen resolution * Fix metadata conflict check * Fix test coverage * Fix type hint * Trigger codecov * rebase me * Upgrade codecov action * Revert codecov action upgrade --------- Co-authored-by: Faizan Ansari <[email protected]> Co-authored-by: SiQube <[email protected]>
Description
Put the metadata parsed in
parse_eyelink()
into theExperiment
,Screen
, andEyeTracker
classes, and check for mismatches compared to user-provided metadata. Create additional attributes for metadata that is not exposed yet (e.g., calibrations and validations).Fixes #868.
Related to #875.
Implemented changes
Experiment
objectExperiment
GazeDataFrame._metadata
to revert breaking change introduced in feat!: Custom patterns for parsing logged metadata in ASC files #767Type 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_from_asc_fills_in_experiment_metadata
test_from_asc_detects_mismatches_in_experiment_metadata
Checklist: