Skip to content

Commit 123914b

Browse files
committed
Add slycotonly to tests
1 parent e5358df commit 123914b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

control/tests/frd_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ def test_mul_mimo_siso(self, left, right, expected):
580580
np.testing.assert_array_almost_equal(expected_frd.omega, result.omega)
581581
np.testing.assert_array_almost_equal(expected_frd.fresp, result.fresp)
582582

583+
@slycotonly
583584
def test_truediv_mimo_siso(self):
584585
omega = np.logspace(-1, 1, 10)
585586
tf_mimo = TransferFunction([1], [1, 0]) * np.eye(2)
@@ -605,6 +606,7 @@ def test_truediv_mimo_siso(self):
605606
np.testing.assert_array_almost_equal(expected.omega, result.omega)
606607
np.testing.assert_array_almost_equal(expected.fresp, result.fresp)
607608

609+
@slycotonly
608610
def test_rtruediv_mimo_siso(self):
609611
omega = np.logspace(-1, 1, 10)
610612
tf_mimo = TransferFunction([1], [1, 0]) * np.eye(2)

control/tests/statesp_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def test_multiply_ss(self, sys222, sys322):
320320
np.testing.assert_array_almost_equal(sys.C, C)
321321
np.testing.assert_array_almost_equal(sys.D, D)
322322

323+
@slycotonly
323324
def test_add_sub_mimo_siso(self):
324325
# Test SS with SS
325326
ss_siso = StateSpace(
@@ -411,6 +412,7 @@ def test_add_sub_mimo_siso(self):
411412
ss2tf(result).minreal(),
412413
)
413414

415+
@slycotonly
414416
@pytest.mark.parametrize(
415417
"left, right, expected",
416418
[
@@ -485,6 +487,7 @@ def test_mul_mimo_siso(self, left, right, expected):
485487
ss2tf(result).minreal(),
486488
)
487489

490+
@slycotonly
488491
@pytest.mark.parametrize(
489492
"left, right, expected",
490493
[
@@ -559,6 +562,7 @@ def test_rmul_mimo_siso(self, left, right, expected):
559562
ss2tf(result).minreal(),
560563
)
561564

565+
@slycotonly
562566
def test_pow(self, sys222, sys322):
563567
"""Test state space powers."""
564568
for sys in [sys222, sys322]:
@@ -604,6 +608,7 @@ def test_pow(self, sys222, sys322):
604608
ss2tf(result).minreal(),
605609
)
606610

611+
@slycotonly
607612
def test_truediv(self, sys222, sys322):
608613
"""Test state space truediv"""
609614
for sys in [sys222, sys322]:
@@ -622,6 +627,7 @@ def test_truediv(self, sys222, sys322):
622627
ss2tf(result).minreal(),
623628
)
624629

630+
@slycotonly
625631
def test_rtruediv(self, sys222, sys322):
626632
"""Test state space rtruediv"""
627633
for sys in [sys222, sys322]:

0 commit comments

Comments
 (0)