Skip to content

Commit 3e02778

Browse files
committed
Test place with varga method only if slycot is installed
1 parent 21e08ab commit 3e02778

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

control/tests/test_statefbk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def test_place(self):
188188
# Error not raised anymore as fallback solution is implemented.
189189
# np.testing.assert_raises(ValueError, place, A, B, P_repeated)
190190

191+
@unittest.skipIf(not slycot_check(), "slycot not installed")
191192
def test_place_varga_continuous(self):
192193
"""
193194
Check that we can place eigenvalues for dtime=False
@@ -220,6 +221,7 @@ def test_place_varga_continuous(self):
220221
P_placed.sort()
221222
np.testing.assert_array_almost_equal(P, P_placed)
222223

224+
@unittest.skipIf(not slycot_check(), "slycot not installed")
223225
def test_pleace_varga_continuous_partial_eigs(self):
224226
"""
225227
Check that we are able to use the alpha parameter to only place
@@ -241,6 +243,7 @@ def test_pleace_varga_continuous_partial_eigs(self):
241243
P_placed.sort()
242244
np.testing.assert_array_almost_equal(P_expected, P_placed)
243245

246+
@unittest.skipIf(not slycot_check(), "slycot not installed")
244247
def test_place_varga_discrete(self):
245248
"""
246249
Check that we can place poles using dtime=True (discrete time)
@@ -256,6 +259,7 @@ def test_place_varga_discrete(self):
256259
P_placed.sort()
257260
np.testing.assert_array_almost_equal(P, P_placed)
258261

262+
@unittest.skipIf(not slycot_check(), "slycot not installed")
259263
def test_place_varga_discrete_partial_eigs(self):
260264
""""
261265
Check that we can only assign a single eigenvalue in the discrete

0 commit comments

Comments
 (0)