Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add decorators to skip new tests for place_varga if slycot is not ins…
…talled
  • Loading branch information
rabraker committed Nov 22, 2018
commit cfe18eabf1a7e8316d23cea8763679014f95d919
3 changes: 3 additions & 0 deletions control/tests/statefbk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def testPlace_varga_continuous(self):
P_placed.sort()
np.testing.assert_array_almost_equal(P, P_placed)

@unittest.skipIf(not slycot_check(), "slycot not installed")
def testPlace_varga_continuous_partial_eigs(self):
"""
Check that we are able to use the alpha parameter to only place
Expand All @@ -239,6 +240,7 @@ def testPlace_varga_continuous_partial_eigs(self):
P_placed.sort()
np.testing.assert_array_almost_equal(P_expected, P_placed)

@unittest.skipIf(not slycot_check(), "slycot not installed")
def testPlace_varga_discrete(self):
"""
Check that we can place poles using DICO='D' (discrete time)
Expand All @@ -254,6 +256,7 @@ def testPlace_varga_discrete(self):
P_placed.sort()
np.testing.assert_array_almost_equal(P, P_placed)

@unittest.skipIf(not slycot_check(), "slycot not installed")
def testPlace_varga_discrete_partial_eigs(self):
""""
Check that we can only assign a single eigenvalue in the discrete
Expand Down