Skip to content

Commit

Permalink
enable non-slycot testing + minor cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
murrayrm committed Dec 26, 2021
1 parent e26f765 commit 3e99742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions control/statefbk.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,15 +638,15 @@ def dlqr(*args, **keywords):
* ``dlqr(A, B, Q, R)``
* ``dlqr(A, B, Q, R, N)``
where `dsys` is a discrete-time :class:`StateSpace` system, and `A`, `B`,
`Q`, `R`, and `N` are 2d arrays of appropriate dimension (`dsys.dt` must
where `dsys` is a discrete-time :class:`StateSpace` system, and `A`, `B`,
`Q`, `R`, and `N` are 2d arrays of appropriate dimension (`dsys.dt` must
not be 0.)
Parameters
----------
A, B : 2D array
Dynamics and input matrices
dsys : LTI :class:`StateSpace`
dsys : LTI :class:`StateSpace`
Discrete-time linear system
Q, R : 2D array
State and input weight matrices
Expand Down
2 changes: 0 additions & 2 deletions control/tests/mateqn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
class TestMatrixEquations:
"""These are tests for the matrix equation solvers in mateqn.py"""

@slycotonly
def test_lyap(self):
A = array([[-1, 1], [-1, 0]])
Q = array([[1, 0], [0, 1]])
Expand All @@ -68,7 +67,6 @@ def test_lyap(self):
X_slycot = lyap(A, Q, method='slycot')
assert_array_almost_equal(X_scipy, X_slycot)

@slycotonly
def test_lyap_sylvester(self):
A = 5
B = array([[4, 3], [4, 3]])
Expand Down
6 changes: 3 additions & 3 deletions control/tests/statefbk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from control.exception import ControlDimension, ControlSlycot, \
ControlArgument, slycot_check
from control.mateqn import care, dare
from control.statefbk import (ctrb, obsv, place, place_varga, lqr, dlqr,
lqe, dlqe, gram, acker)
from control.statefbk import (ctrb, obsv, place, place_varga, lqr, dlqr,
lqe, dlqe, gram, acker)
from control.tests.conftest import (slycotonly, check_deprecated_matrix,
ismatarrayout, asmatarrayout)

Expand Down Expand Up @@ -507,7 +507,7 @@ def test_care(self, matarrayin):
X, L, G = care(A, B, Q, R, S, E, stabilizing=False)

@pytest.mark.parametrize(
"stabilizing",
"stabilizing",
[True, pytest.param(False, marks=slycotonly)])
def test_dare(self, matarrayin, stabilizing):
"""Test stabilizing and anti-stabilizing feedback, discrete"""
Expand Down

0 comments on commit 3e99742

Please sign in to comment.