Skip to content
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

Merged
merged 10 commits into from
Oct 7, 2024

Conversation

goodwilj
Copy link
Contributor

@goodwilj goodwilj commented Aug 2, 2024

See issue 145 for more details.

goodwilj and others added 6 commits August 2, 2024 10:12
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
@the-other-james
Copy link
Contributor

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.

Copy link
Contributor

@the-other-james the-other-james left a 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.

@asgibson asgibson merged commit 7841398 into nasa:main Oct 7, 2024
10 checks passed
@asgibson asgibson linked an issue Nov 7, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update sliding window approach of Kalman filter implementation
3 participants