@@ -33,8 +33,10 @@ def test_sisotool(self):
3333
3434 # Check the step response before moving the point
3535 step_response_original = np .array (
36- [0. , 0.0217 , 0.1281 , 0.3237 , 0.5797 , 0.8566 , 1.116 , 1.3261 , 1.4659 , 1.526 ])
37- assert_array_almost_equal (ax_step .lines [0 ].get_data ()[1 ][:10 ],step_response_original )
36+ [0. , 0.0217 , 0.1281 , 0.3237 , 0.5797 , 0.8566 , 1.116 ,
37+ 1.3261 , 1.4659 , 1.526 ])
38+ assert_array_almost_equal (
39+ ax_step .lines [0 ].get_data ()[1 ][:10 ], step_response_original , 4 )
3840
3941 bode_plot_params = {
4042 'omega' : None ,
@@ -76,8 +78,10 @@ def test_sisotool(self):
7678
7779 # Check if the step response has changed
7880 step_response_moved = np .array (
79- [0. , 0.0239 , 0.161 , 0.4547 , 0.8903 , 1.407 , 1.9121 , 2.2989 , 2.4686 , 2.353 ])
80- assert_array_almost_equal (ax_step .lines [0 ].get_data ()[1 ][:10 ],step_response_moved )
81+ [0. , 0.0239 , 0.161 , 0.4547 , 0.8903 , 1.407 ,
82+ 1.9121 , 2.2989 , 2.4686 , 2.353 ])
83+ assert_array_almost_equal (
84+ ax_step .lines [0 ].get_data ()[1 ][:10 ], step_response_moved , 4 )
8185
8286
8387if __name__ == "__main__" :
0 commit comments