8000 Mark linfnorm tests as Slycot-only. · python-control/python-control@64bdb10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64bdb10

Browse files
committed
Mark linfnorm tests as Slycot-only.
1 parent af5326a commit 64bdb10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

control/tests/statesp_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ def test_latex_repr_testsize(editsdefaults):
11061106
# the underdamped gpeak and fpeak are found from
11071107
# gpeak = 1/(2*zeta*(1-zeta**2)**0.5
11081108
# fpeak = wn*(1-2*zeta**2)**0.5
1109+
@slycotonly
11091110
@pytest.mark.parametrize(
11101111
"name, sys, refgpeak, reffpeak",
11111112
[
@@ -1124,6 +1125,7 @@ def test_linfnorm_siso_continuoustime(name, sys, refgpeak, reffpeak):
11241125

11251126

11261127
# these are the continuous-time examples with some tweaks
1128+
@slycotonly
11271129
@pytest.mark.parametrize(
11281130
"name, sys, refgpeak, reffpeak",
11291131
[
@@ -1146,6 +1148,7 @@ def test_linfnorm_siso_discretetime(name, sys, refgpeak, reffpeak):
11461148
np.testing.assert_allclose(fpeak, reffpeak)
11471149

11481150

1151+
@slycotonly
11491152
@pytest.mark.parametrize("name, sys, refgpeak, reffpeak",
11501153
linfnorm_mimo_testcases.continuous_time)
11511154
def test_linfnorm_mimo_continuoustime(name, sys, refgpeak, reffpeak):
@@ -1154,6 +1157,7 @@ def test_linfnorm_mimo_continuoustime(name, sys, refgpeak, reffpeak):
11541157
np.testing.assert_allclose(fpeak, reffpeak)
11551158

11561159

1160+
@slycotonly
11571161
@pytest.mark.parametrize("name, sys, refgpeak, reffpeak",
11581162
linfnorm_mimo_testcases.discrete_time)
11591163
def test_linfnorm_mimo_discretetime(name, sys, refgpeak, reffpeak):
@@ -1162,8 +1166,8 @@ def test_linfnorm_mimo_discretetime(name, sys, refgpeak, reffpeak):
11621166
np.testing.assert_allclose(fpeak, reffpeak)
11631167

11641168

1169+
@slycotonly
11651170
def test_linfnorm_notimebase():
11661171
g = ct.ss(-0.1,1,1,0,dt=None)
11671172
with pytest.raises(ValueError):
11681173
linfnorm(g)
1169-

0 commit comments

Comments
 (0)
0