-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re-implement kalman filter with single sliding-window prediction #146
Conversation
Moved self.frames initialization of inner lists to `__init__` That allowed update to be simplified `flotify_unput` added to `update` to transform low_level_data into all floats and make it the frame `initial_value` in _predict no longer optional only place calling it always provided value Tests updated to reflect changes by adding, subtracting, changing Tests added to ensure coverage where it was lacking New testing technique: `super()` calls mockable obtain the parent class object (this is what `super()` returns already) patch any calls to it, including `__init__`
Changed docstrings to Numpy format Added print_msg from util for no raise error output Enforced window size > 2, otherise raise error Black and Pylint changes no single quotes for comments or strings use enumerate not range and len
I think this branch needs to pull in the latest changes from main (looks like it is 5 commits behind which explains the conflicting files since the black reformatting touched the old kalman plugin). environment_dev.yml should also be updated I would think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Tests pass 100% with full coverage on my setup. Black is happy too.
See issue 145 for more details.