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

Dimensions does not match in the Kalman Filter. #221

Closed
CuiiGen opened this issue Nov 23, 2022 · 1 comment · Fixed by #223
Closed

Dimensions does not match in the Kalman Filter. #221

CuiiGen opened this issue Nov 23, 2022 · 1 comment · Fixed by #223
Assignees

Comments

@CuiiGen
Copy link

CuiiGen commented Nov 23, 2022

inputs = np.array([u[key] for key in self.model.inputs])
# Add row of ones (to account for constant E term)
if np.size(inputs) == 0:
inputs = np.array([[1]])
else:
inputs = np.append(inputs, [[1]], 0)

The variable inputs defined in Line 119 is a array whose shape is (n, ).
Exceptions will be raised then from Line 125 because [[1]] is a matrix whose shape is (1, 1) that does not match with inputs.
All the examples are based on the ThrownObject class whose inputs is empty.
So you may don't notice this problem when test your code.

@kjjarvis kjjarvis linked a pull request Nov 23, 2022 that will close this issue
@kjjarvis
Copy link
Contributor

Hi @CuiiGen, thanks for notifying us of this issue. We have pushed a hot fix v1.4.2, and the updated code can be installed using the standard pip install prog_algs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants