Update pytest · python-control/python-control@cee59d1
@@ -43,13 +43,13 @@ def testMarkovSignature(self):
43434444# Basic usage
4545m = 3
46-H = markov(Y, U, m, transpose=False)
4746Htrue = np.array([1., 0., 0.])
47+48+H = markov(Y, U, m, transpose=False)
4849np.testing.assert_array_almost_equal(H, Htrue)
49505051response.transpose=False
5152H = markov(response, m)
52-Htrue = np.array([1., 0., 0.])
5353np.testing.assert_array_almost_equal(H, Htrue)
54545555# Make sure that transposed data also works
@@ -69,15 +69,19 @@ def testMarkovSignature(self):
6969np.testing.assert_array_almost_equal(H, Htrue)
70707171# Test example from docstring
72+# TODO: There is a problem here
73+# Htrue = np.array([1., 0.5, 0.])
7274T = np.linspace(0, 10, 100)
7375U = 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)
76797780T = np.linspace(0, 10, 100)
7881U = np.ones((1, 100))
7982response = forced_response(tf([1], [1, 0.5], True), T, U)
8083H = markov(response, 3)
84+#np.testing.assert_array_almost_equal(H, Htrue)
81858286# Test example from issue #395
8387inp = np.array([1, 2])