8000 Merge pull request #212 from murrayrm/fix_statespace · uLipe/python-control@81ebbcf · GitHub
[go: up one dir, main page]

Skip to content

Commit 81ebbcf

Browse files
authored
Merge pull request python-control#212 from murrayrm/fix_statespace
Fix statespace issues causing Travis CI failures
2 parents 115223e + e6
10000
447ea commit 81ebbcf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

control/statesp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,9 @@ def zero(self):
537537
# from
538538
# https://dspace.mit.edu/bitstream/handle/1721.1/841/P-0802-06587335.pdf.
539539
# The QZ algorithm solves the generalized eigenvalue problem: given
540-
# `L = [A, B; C, D]` and `M = [I_nxn 0]`, find all finite λ for
541-
# which there exist nontrivial solutions of the equation `Lz - λMz`.
540+
# `L = [A, B; C, D]` and `M = [I_nxn 0]`, find all finite lambda
541+
# for which there exist nontrivial solutions of the equation
542+
# `Lz - lamba Mz`.
542543
#
543544
# The generalized eigenvalue problem is only solvable if its
544545
# arguments are square matrices.

control/tests/statesp_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def testPole(self):
4242

4343
np.testing.assert_array_almost_equal(p, true_p)
4444

45-
def testZero(self):
45+
@unittest.skipIf(not slycot_check(), "slycot not installed")
46+
def testMIMOZero_nonsquare(self):
4647
"""Evaluate the zeros of a MIMO system."""
4748

4849
z = np.sort(self.sys1.zero())

0 commit comments

Comments
 (0)
0