@@ -70,6 +70,7 @@ def test_bode_basic(ss_siso):
7070 assert len (bode_plot (tf_siso , plot = False , omega = np .logspace (- 1 ,1 ,10 ))[0 ])\
7171 == 10
7272
73+
7374def test_nyquist_basic (ss_siso ):
7475 """Test nyquist plot call (Very basic)"""
7576 # TODO: proper test
@@ -367,7 +368,6 @@ def test_initial_phase(TF, initial_phase, default_phase, expected_phase):
367368 pytest .param (ctrl .tf ([1 ], [1 , 0 , 0 , 0 , 0 , 0 ]),
368369 - 270 , - 3 * math .pi / 2 , math .pi / 2 , id = "order5, -270" ),
369370 ])
370-
371371def test_phase_wrap (TF , wrap_phase , min_phase , max_phase ):
372372 mag , phase , omega = ctrl .bode (TF , wrap_phase = wrap_phase )
373373 assert (min (phase ) >= min_phase )
@@ -638,8 +638,7 @@ def test_singular_values_plot_mpl_superimpose_nyq(ss_mimo_ct, ss_mimo_dt):
638638 omega_all = np .logspace (- 3 , 2 , 1000 )
639639 plt .figure ()
640640 singular_values_plot (sys_ct , omega_all , plot = True )
641- with pytest .warns (UserWarning ):
642- singular_values_plot (sys_dt , omega_all , plot = True )
641+ singular_values_plot (sys_dt , omega_all , plot = True )
643642 fig = plt .gcf ()
644643 allaxes = fig .get_axes ()
645644 assert (len (allaxes ) == 1 )
0 commit comments