Dropped start/stop kwargs from compute_path_length and compute_path_straightness#987
Dropped start/stop kwargs from compute_path_length and compute_path_straightness#987vybhav72954 wants to merge 3 commits into
start/stop kwargs from compute_path_length and compute_path_straightness#987Conversation
|
@niksirbi I have completed the refactor, have updated dosctring best as per my understanding. There is one question, |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #987 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 41 41
Lines 2824 2823 -1
=========================================
- Hits 2824 2823 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
niksirbi
left a comment
There was a problem hiding this comment.
Thanks @vybhav72954, this is well done!
I only have two minor suggestions:
- as you've already flagged, let's rename
_slice_and_validateto sth like_validate_time_points - Nitpicky: The module docstring (
path.py:3-4) still reads "the spatial trajectory of an individual between two time points." That phrasing was framed around the oldstart/stopmodel. Consider rewording to sth like "the spatial trajectory of an individual over the time span of the data", for consistency.
I'm pre-approving this PR, as both suggestions are minor. The CI failure is unrelated and should hopefully resolve itself soon.
|



Fixes #986
Description
Remove
start/stopkwargsfromcompute_path_lengthandcompute_path_straightness. Users do the time-windowing with idiomatic xarray instead:What is this PR
Why is this PR needed?
References
Discussion on Zulip
Is this a breaking change?
Yes, it would be included in the new release!
Does this PR require an update to the documentation?
Yes, function docstrings updated to remove start/stop references; Examples now show the .sel() migration pattern.
Checklist: