Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_update(self):
prior_mean = np.array([[1],[2],[3]])
prior_covariance = np.eye(3)*2
observation_model = np.ones((2,3))
observation_noise = np.eye(2)*0.1
measurement = np.array([[3],[4]])
m, P = primitives.update(prior_mean, prior_covariance, observation_model, observation_noise, measurement)
self.assertSequenceEqual(m.shape, (3,1))
self.assertSequenceEqual(P.shape, (3,3))