8000 test to make sure kvect gains are respected even if plotting · python-control/python-control@eadd496 · GitHub
[go: up one dir, main page]

Skip to content

Commit eadd496

Browse files
committed
test to make sure kvect gains are respected even if plotting
1 parent 4107950 commit eadd496

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

control/tests/rlocus_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ def testRootLocus(self, sys):
5454
np.testing.assert_allclose(klist, k_out)
5555
self.check_cl_poles(sys, roots, klist)
5656

57+
# now check with plotting
58+
roots, k_out = root_locus(sys, klist)
59+
np.testing.assert_equal(len(roots), len(klist))
60+
np.testing.assert_allclose(klist, k_out)
61+
self.check_cl_poles(sys, roots, klist)
62+
5763
def test_without_gains(self, sys):
5864
roots, kvect = root_locus(sys, plot=False)
5965
self.check_cl_poles(sys, roots, kvect)

0 commit comments

Comments
 (0)
0