@@ -14,7 +14,7 @@ def setUp(self):
1414 self .system = TransferFunction ([1000 ],[1 ,25 ,100 ,0 ])
1515
1616 def test_sisotool (self ):
17- sisotool (self .system )
17+ sisotool (self .system , Hz = False )
1818 fig = plt .gcf ()
1919 ax_mag ,ax_rlocus ,ax_phase ,ax_step = fig .axes [0 ],fig .axes [1 ],fig .axes [2 ],fig .axes [3 ]
2020
@@ -31,7 +31,6 @@ def test_sisotool(self):
3131 assert_array_almost_equal (ax_mag .lines [0 ].get_data ()[1 ][10 :20 ],bode_mag_original )
3232
3333 # Check the step response before moving the point
34- print (ax_step .lines [0 ].get_data ()[1 ][:10 ])
3534 step_response_original = np .array ([ 0. , 0.02233651 , 0.13118374 , 0.33078542 , 0.5907113 , 0.87041549 , 1.13038536 , 1.33851053 , 1.47374666 , 1.52757114 ])
3635 assert_array_almost_equal (ax_step .lines [0 ].get_data ()[1 ][:10 ],step_response_original )
3736
@@ -55,8 +54,6 @@ def test_sisotool(self):
5554 moved_point_0 = (np .array ([- 29.91742755 ]), np .array ([0. ]))
5655 moved_point_1 = (np .array ([2.45871378 ]), np .array ([- 15.52647768 ]))
5756 moved_point_2 = (np .array ([2.45871378 ]), np .array ([15.52647768 ]))
58- for line in ax_rlocus .lines :
59- print (line .get_data ())
6057 assert_array_almost_equal (ax_rlocus .lines [- 3 ].get_data (),moved_point_0 )
6158 assert_array_almost_equal (ax_rlocus .lines [- 2 ].get_data (),moved_point_1 )
6259 assert_array_almost_equal (ax_rlocus .lines [- 1 ].get_data (),moved_point_2 )
0 commit comments