8000 Update pytest · python-control/python-control@cee59d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cee59d1

Browse files
committed
Update pytest
1 parent 2b1cd21 commit cee59d1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

control/tests/modelsimp_test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def testMarkovSignature(self):
4343

4444
# Basic usage
4545
m = 3
46-
H = markov(Y, U, m, transpose=False)
4746
Htrue = np.array([1., 0., 0.])
47+
48+
H = markov(Y, U, m, transpose=False)
4849
np.testing.assert_array_almost_equal(H, Htrue)
4950

5051
response.transpose=False
5152
H = markov(response, m)
52-
Htrue = np.array([1., 0., 0.])
5353
np.testing.assert_array_almost_equal(H, Htrue)
5454

5555
# Make sure that transposed data also works
@@ -69,15 +69,19 @@ def testMarkovSignature(self):
6969
np.testing.assert_array_almost_equal(H, Htrue)
7070

7171
# Test example from docstring
72+
# TODO: There is a problem here
73+
# Htrue = np.array([1., 0.5, 0.])
7274
T = np.linspace(0, 10, 100)
7375
U = np.ones((1, 100))
74-
_, Y = forced_response(tf([1], [1, 0.5], True), T, U)
75-
H = markov(Y, U, 3)
76+
T, Y = forced_response(tf([1], [1, 0.5], True), T, U)
77+
H = markov(Y, U, 3, transpose=False)
78+
#np.testing.assert_array_almost_equal(H, Htrue)
7679

7780
T = np.linspace(0, 10, 100)
7881
U = np.ones((1, 100))
7982
response = forced_response(tf([1], [1, 0.5], True), T, U)
8083
H = markov(response, 3)
84+
#np.testing.assert_array_almost_equal(H, Htrue)
8185

8286
# Test example from issue #395
8387
inp = np.array([1, 2])

0 commit comments

Comments
 (0)
0