|
10 | 10 | import pytest |
11 | 11 |
|
12 | 12 | import control as ct |
13 | | -from control import (StateSpace, TransferFunction, defaults, evalfr, isctime, |
14 | | - isdtime, reset_defaults, rss, sample_system, set_defaults, |
15 | | - ss, ss2tf, tf, tf2ss, zpk) |
| 13 | +from control import StateSpace, TransferFunction, defaults, evalfr, isctime, \ |
| 14 | + isdtime, reset_defaults, rss, sample_system, set_defaults, ss, ss2tf, tf, \ |
| 15 | + tf2ss, zpk |
16 | 16 | from control.statesp import _convert_to_statespace |
17 | 17 | from control.tests.conftest import slycotonly |
18 | 18 | from control.xferfcn import _convert_to_transfer_function, _tf_close_coeff |
@@ -186,7 +186,6 @@ def test_reverse_sign_siso(self): |
186 | 186 | np.testing.assert_allclose(sys2.num, [[[-1., -3., -5.]]]) |
187 | 187 | np.testing.assert_allclose(sys2.den, [[[1., 6., 2., -1.]]]) |
188 | 188 |
|
189 | | - @slycotonly |
190 | 189 | def test_reverse_sign_mimo(self): |
191 | 190 | """Negate a MIMO system.""" |
192 | 191 | num1 = [[[1., 2.], [0., 3.], [2., -1.]], |
@@ -228,7 +227,6 @@ def test_add_siso(self): |
228 | 227 | np.testing.assert_allclose(sys3.num, [[[20., 4., -8]]]) |
229 | 228 | np.testing.assert_allclose(sys3.den, [[[1., 6., 1., -7., -2., 1.]]]) |
230 | 229 |
|
231 | | - @slycotonly |
232 | 230 | def test_add_mimo(self): |
233 | 231 | """Add two MIMO systems.""" |
234 | 232 | num1 = [[[1., 2.], [0., 3.], [2., -1.]], |
@@ -276,7 +274,6 @@ def test_subtract_siso(self): |
276 | 274 | np.testing.assert_allclose(sys4.num, [[[-2., -6., 12., 10., 2.]]]) |
277 | 275 | np.testing.assert_allclose(sys4.den, [[[1., 6., 1., -7., -2., 1.]]]) |
278 | 276 |
|
279 | | - @slycotonly |
280 | 277 | def test_subtract_mimo(self): |
281 | 278 | """Subtract two MIMO systems.""" |
282 | 279 | num1 = [[[1., 2.], [0., 3.], [2., -1.]], |
@@ -327,7 +324,6 @@ def test_multiply_siso(self): |
327 | 324 | np.testing.assert_allclose(sys3.num, sys4.num) |
328 | 325 | np.testing.assert_allclose(sys3.den, sys4.den) |
329 | 326 |
|
330 | | - @slycotonly |
331 | 327 | def test_multiply_mimo(self): |
332 | 328 | """Multiply two MIMO systems.""" |
333 | 329 | num1 = [[[1., 2.], [0., 3.], [2., -1.]], |
@@ -714,7 +710,6 @@ def test_call_dtime(self): |
714 | 710 | sys = TransferFunction([1., 3., 5], [1., 6., 2., -1], 0.1) |
715 | 711 | np.testing.assert_array_almost_equal(sys(1j), -0.5 - 0.5j) |
716 | 712 |
|
717 | | - @slycotonly |
718 | 713 | def test_call_mimo(self): |
719 | 714 | """Evaluate the frequency response of a MIMO system at one frequency.""" |
720 | 715 |
|
@@ -755,7 +750,6 @@ def test_frequency_response_siso(self): |
755 | 750 | np.testing.assert_array_almost_equal(phase, truephase) |
756 | 751 | np.testing.assert_array_almost_equal(omega, trueomega) |
757 | 752 |
|
758 | | - @slycotonly |
759 | 753 | def test_freqresp_mimo(self): |
760 | 754 | """Evaluate the MIMO magnitude and phase at multiple frequencies.""" |
761 | 755 | num = [[[1., 2.], [0., 3.], [2., -1.]], |
@@ -852,7 +846,6 @@ def test_common_den_nonproper(self): |
852 | 846 | _, den2, _ = tf2._common_den(allow_nonproper=True) |
853 | 847 | np.testing.assert_array_almost_equal(den2, common_den_ref) |
854 | 848 |
|
855 | | - @slycotonly |
856 | 849 | def test_pole_mimo(self): |
857 | 850 | """Test for correct MIMO poles.""" |
858 | 851 | sys = TransferFunction( |
@@ -936,7 +929,6 @@ def test_append(self): |
936 | 929 | tf_appended_2 = tf1.append(tf2).append(tf3) |
937 | 930 | assert _tf_close_coeff(tf_exp_2, tf_appended_2) |
938 | 931 |
|
939 | | - @slycotonly |
940 | 932 | def test_convert_to_transfer_function(self): |
941 | 933 | """Test for correct state space to transfer function conversion.""" |
942 | 934 | A = [[1., -2.], [-3., 4.]] |
@@ -1023,7 +1015,6 @@ def test_state_space_conversion_mimo(self): |
1023 | 1015 | np.testing.assert_array_almost_equal(H.num[1][0], H2.num[1][0]) |
1024 | 1016 | np.testing.assert_array_almost_equal(H.den[1][0], H2.den[1][0]) |
1025 | 1017 |
|
1026 | | - @slycotonly |
1027 | 1018 | def test_indexing(self): |
1028 | 1019 | """Test TF scalar indexing and slice""" |
1029 | 1020 | tm = ss2tf(rss(5, 3, 3)) |
@@ -1213,7 +1204,6 @@ def test_printing_polynomial(self, args, outputfmt, var, dt, dtstring): |
1213 | 1204 | assert len(polystr[0].split('\n')) == 4 |
1214 | 1205 | assert polystr[2] == outputfmt.format(var=var) |
1215 | 1206 |
|
1216 | | - @slycotonly |
1217 | 1207 | def test_printing_mimo(self): |
1218 | 1208 | """Print MIMO, continuous time""" |
1219 | 1209 | sys = ss2tf(rss(4, 2, 3)) |
@@ -1332,7 +1322,6 @@ def test_printing_zpk_mimo(self, num, den, output): |
1332 | 1322 | res = str(G) |
1333 | 1323 | assert res.partition('\n\n')[2] == output |
1334 | 1324 |
|
1335 | | - @slycotonly |
1336 | 1325 | def test_size_mismatch(self): |
1337 | 1326 | """Test size mismacht""" |
1338 | 1327 | sys1 = ss2tf(rss(2, 2, 2)) |
|
0 commit comments