Skip to content

Commit a437893

Browse files
authored
Merge pull request #225 from frolswe/patch-1
residual_of() does not reshahape z
2 parents 9db3d60 + 9809787 commit a437893

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

filterpy/kalman/kalman_filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ def residual_of(self, z):
11051105
Returns the residual for the given measurement (z). Does not alter
11061106
the state of the filter.
11071107
"""
1108+
z = reshape_z(z, self.dim_z, self.x.ndim)
11081109
return z - dot(self.H, self.x_prior)
11091110

11101111
def measurement_of_state(self, x):

0 commit comments

Comments
 (0)