From 5aa1f777a419edcaa488f35cf424e2d9ed947545 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 1 Jul 2018 19:33:06 -0700 Subject: [PATCH 1/2] turn off nonsquare zero unit test when slycot is not installed --- control/tests/statesp_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 1677f6afe..fe1293fb5 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -42,7 +42,8 @@ def testPole(self): np.testing.assert_array_almost_equal(p, true_p) - def testZero(self): + @unittest.skipIf(not slycot_check(), "slycot not installed") + def testMIMOZero_nonsquare(self): """Evaluate the zeros of a MIMO system.""" z = np.sort(self.sys1.zero()) From e6447ea10bbc5f7ddd23bff6aaed2e4aa7fbbcde Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 1 Jul 2018 19:33:34 -0700 Subject: [PATCH 2/2] remove non-ASCII text from statesp.py comment (was causing Travis CI issues) --- control/statesp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index f7fe6a3b5..d69f7d7d1 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -537,8 +537,9 @@ def zero(self): # from # https://dspace.mit.edu/bitstream/handle/1721.1/841/P-0802-06587335.pdf. # The QZ algorithm solves the generalized eigenvalue problem: given - # `L = [A, B; C, D]` and `M = [I_nxn 0]`, find all finite λ for - # which there exist nontrivial solutions of the equation `Lz - λMz`. + # `L = [A, B; C, D]` and `M = [I_nxn 0]`, find all finite lambda + # for which there exist nontrivial solutions of the equation + # `Lz - lamba Mz`. # # The generalized eigenvalue problem is only solvable if its # arguments are square matrices. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy