Fix test_update_returns_state to flatten Kalman output (#35083)

fix(tests): flatten Kalman filter output in test_update_returns_state
pull/35092/head
William Bonilla 4 weeks ago committed by GitHub
parent c4acae6b51
commit c5b75168e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      common/tests/test_simple_kalman.py

@ -24,6 +24,6 @@ class TestSimpleKalman:
self.kf.set_x([[1.0], [1.0]])
assert self.kf.x == [[1.0], [1.0]]
def update_returns_state(self):
def test_update_returns_state(self):
x = self.kf.update(100)
assert x == self.kf.x
assert x == [i[0] for i in self.kf.x]

Loading…
Cancel
Save