Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
=======================================
Coverage 99.80% 99.80%
=======================================
Files 15 15
Lines 1048 1048
=======================================
Hits 1046 1046
Misses 2 2 ☔ View full report in Codecov by Sentry. |
cc622b9 to
978c8b3
Compare
7c0b12c to
7acf596
Compare
60b3e50 to
253a8ea
Compare
sfmig
left a comment
There was a problem hiding this comment.
thanks @lochhh it looks fantastic!
I really like the consistency (such as the _file endings, the via_ prefixes, with_nan suffixes etc), it makes a lot of it much more readable. I followed some of these ideas and suggested a few invalid_ prefixes for some dataset-related fixtures.
The only larger thing is that I had a go at moving the movement_dataset_asserts fixture to be under the helpers fixtures, since the class that wrapped it only had that one method - it's here, but you can revert if you disagree.
Re PR #385, since that is now merged, if you want to deal with that in this PR I am happy to review any additions. Otherwise we can deal with it separately in another PR/issue.
Oops sorry, we merged it without looking here. |
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
cc5c7f9 to
8bd6ef1
Compare
|
Thanks for the thorough review and suggestions @sfmig ! I've adopted most suggestions and explained those that weren't. I also added your suggestion related to the renamed I briefly looked into PR #385 and there isn't any new additions to |



Description
What is this PR
Why is this PR needed?
This PR closes #336 and #222.
What does this PR do?
This PR
datasets.py,files.py, orhelpers.pyintests/fixtures/; where datasets contains fixtures for valid and invalid movement datasets and arrays, dataframes; helpers contain the helper functions to count nans and the reusedassert_valid_dataset()filefixtures returning file paths are suffixed with "_file" to enable devs to easily identify file fixtures and search for existing onesvia_valid_poses_dataset,valid_poses_dataset_with_nan,valid_position_arrayfixtures with the neweruniform_linear_motionfixtures and updates the affected testsposes_with_nanfixture to match that of bboxes (i.e. both centroids have nans at the same time points)datafixtures containing nans are consistently suffixed with_with_nan(before we had a mix of_with_nansand_with_nan)TestComputeKinematics,TestFilteringValidDatasetid_0(before, poses ids start fromid_1); semi-related note: movement by default sets "individuals" names to begin with "individual_0" if none are provided upon import.compute_time_derivativetest to match new function name and parametrise expectationsI haven't changed the vector-related tests in
test_kinematics.pyas there is ongoing work in PR #385.References
#336 #222
How has this PR been tested?
Tests passing
Checklist: