We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c67f7 commit 8e736f7Copy full SHA for 8e736f7
tests/test_linearization.py
@@ -67,12 +67,12 @@ def test_getters(tmp_path):
67
68
mod.setInputs(u1=10, u2=0)
69
[A, B, C, D] = mod.linearize()
70
- g = float(mod.getParameters("g")[0])
71
- l = float(mod.getParameters("l")[0])
+ param_g = float(mod.getParameters("g")[0])
+ param_l = float(mod.getParameters("l")[0])
72
assert mod.getLinearInputs() == ["u1", "u2"]
73
assert mod.getLinearStates() == ["omega", "phi"]
74
assert mod.getLinearOutputs() == ["y1", "y2"]
75
- assert np.isclose(A, [[0, g/l], [1, 0]]).all()
+ assert np.isclose(A, [[0, param_g / param_l], [1, 0]]).all()
76
assert np.isclose(B, [[0, 0], [0, 1]]).all()
77
assert np.isclose(C, [[0.5, 1], [0, 1]]).all()
78
assert np.isclose(D, [[1, 0], [1, 0]]).all()
0 commit comments