-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
filtering
module to take DataArrays as input (#209)
* Draft dataarray accessor * Move dataarray accessor methods to `filtering` * Add dataarray functions, test equality * Add tests * Add integration test * Remove filters taking Dataset as input * Reorganise filtering module * Update filter and smooth examples * Replace `window_length` with `window` * Format assert string * Remove old code accidentally reintroduced during rebase * Update docstrings * Add filtering methods to the `move` accessor * Add example to docstring * Remove obsolete and unused function imports * Move util functions to reports.py and logging.py * Apply suggestions from code review Co-authored-by: Niko Sirmpilatze <[email protected]> * Update docstrings * Add missing docstring * Add `move` accessor examples in docstrings * Remove `position` check in kinematics wrapper * Change`interpolate_over_time` to operate on num of observations * Add test for different `max_gap` values * Update `filter_and_interpolate.py` example * Fix `filtering_wrapper` bug * Update filter examples * Use dictionary `update` in `smooth` example * Move `logger` assignment to top of file * Add `update` example to "getting started" * Cover both dataarray and dataset in `test_log_to_attrs` * Test that ``log`` contains the filtering method applied * Use :py:meth: syntax for xarray.DataArray.squeeze() in examples * Update `reports.py` docstrings * Handle missing `individuals` and `keypoints` dims in NaN-reports * Return str in `report_nan_values` * Clean up examples * Convert filtering multiple data variables tip to section * Use `update()` in `filter_and_interpolate` example --------- Co-authored-by: Niko Sirmpilatze <[email protected]>
- Loading branch information
Showing
17 changed files
with
941 additions
and
542 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.