8000 fix unit test issue (change in error message) · python-control/python-control@1fd18b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1fd18b4

Browse files
committed
fix unit test issue (change in error message)
1 parent 8c6565b commit 1fd18b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/stochsys.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ def create_estimator_iosystem(
469469
# Set the output matrices
470470
if C is not None:
471471
# Make sure we have full system output (allowing for numerical errors)
472-
if not np.allclose(sys.C, np.eye(sys.nstates)):
472+
if sys.C.shape[0] != sys.nstates or \
473+
not np.allclose(sys.C, np.eye(sys.nstates)):
473474
raise ValueError("System output must be full state")
474475

475476
# Make sure that the output matches the size of RN

0 commit comments

Comments
 (0)
0