Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #796 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 36
Lines 2205 2230 +25
=========================================
+ Hits 2205 2230 +25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e0b36d6 to
6c7d4c7
Compare
6c7d4c7 to
7d5710f
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
What is this PR
Why is this PR needed?
Tracking data often contains spurious short trajectories that are likely tracking errors. Currently, users need to manually write complex xarray selection code to filter these out. This PR adds a convenient utility function to streamline this common preprocessing task.
What does this PR do?
Adds
filter_short_trajectories()function tomovement.filteringmodule that:print_reportparameter to show which individuals were filteredlogger.error)References
Closes #791
How has this PR been tested?
tests/test_unit/test_filtering.pycovering:individualsdimensionIs this a breaking change?
No. This is a new function with no changes to existing functionality.
Does this PR require an update to the documentation?
The function includes a comprehensive docstring with examples. The function will automatically appear in the API reference documentation when built. No additional documentation updates needed at this time, though a usage example could be added to the user guide in a future PR if desired.
Checklist: