-
Notifications
You must be signed in to change notification settings - Fork 10
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
Drop the .move
accessor
#322
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
==========================================
- Coverage 99.77% 99.76% -0.02%
==========================================
Files 15 14 -1
Lines 909 846 -63
==========================================
- Hits 907 844 -63
Misses 2 2 ☔ View full report in Codecov by Sentry. |
Reminder:
|
c8f3498
to
2a1df39
Compare
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.
Thanks @niksirbi ! My comments are mostly related to validation. I think we don't need the movement_dataset
module now, as all it does is defining constants - these can go into the respective dataset validators. I also added cross-references - the kinematics functions are lengthy but should be better once #328 and #320 are closed.
movement/movement_dataset.py
Outdated
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.
I think DIM_NAMES, VAR_NAMES can go into validators/datasets.py: ValidBboxesDataset, ValidPosesDataset, because this is part of our expectation of a valid Bboxes/Poses dataset.
Not sure we need this module (yet?), since users are not expected to instantiate and use instances of MovementDataset, etc. - which may be confused with the movement dataset on the website. This module would make sense if we have something like BboxesDataset.load(...)
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.
You are right. We may need sth like this later, but not now.
Would you prefer to have DIM_NAMES
, VAR_NAMES
as class variables in the above validator classes, or on the validators.py
module level? I guess the first makes mores sense?
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.
Agreed. First one makes more sense.
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.
Alright, I implemented them as class variables in the respective dataset validator classes and removed the movement_dataset.py
module.
Now that we have them there, I was tempted to fiddle with the validators to make the order of dimensions less hard-coded, but I stopped myself because that belong to #210 and #236.
This reverts commit c8f3498.
dfffae9
to
0d27de6
Compare
Quality Gate passedIssues Measures |
Thanks for the review @lochhh!. I've removed the I also removed |
Description
What is this PR
Why is this PR needed?
Closes #319, for reasons explained in that issue.
Closes #257 as part of the course.
What does this PR do?
move_accesor.py
move_accessor.py
outsidesave_poses.py
(because they were only used upon saving anyway).movement_dataset.py
module, which now defines these per dataset typeNote
This was less painful than I anticipated, thanks to our tests 🎉
I just had to remove the accessor class, see which test break.
and remove or modify them accordingly.
How has this PR been tested?
Yeah, by ensuring that existing test still pass, and full coverage is maintained.
Note that the overall coverage percentage has gone down by 0.01%, because although we still have the same number of uncovered lines, the total lines of code have gone down.
Is this a breaking change?
YES: code that was using the accessor will break after the next release.
Does this PR require an update to the documentation?
Yes, and it's been updated.
Checklist: