Update pytest · python-control/python-control@cee59d1

@@ -43,13 +43,13 @@ def testMarkovSignature(self):

43434444

# 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)

49505051

response.transpose=False

5152

H = markov(response, m)

52-

Htrue = np.array([1., 0., 0.])

5353

np.testing.assert_array_almost_equal(H, Htrue)

54545555

# Make sure that transposed data also works

@@ -69,15 +69,19 @@ def testMarkovSignature(self):

6969

np.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.])

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)

76797780

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)

81858286

# Test example from issue #395

8387

inp = np.array([1, 2])