neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
77 stars 7 forks source link

More thorough tests for the filtering.py module #138

Open niksirbi opened 3 months ago

niksirbi commented 3 months ago

Is your feature request related to a problem? Please describe. PR #116 introduced the filtering.py module and corresponding tests test_filtering.y which reach 100% coverage. However, due to time constraints we haven't implemented tests to cover all edge cases (e.g. currently only a single example dataset is tested).

Describe the solution you'd like Test the filtering functions against a more complete set of sample data and thoroughly validate the expected behaviour. As an example, we could try manually introducing series of consecutive NaNs with varying lengths in an existing dataset, and check that the correct amount of NaNs are removed/interpolated over.