[Scipy-svn] r6484 - branches/0.8.x/scipy/signal/tests

scipy-svn@scip... scipy-svn@scip...
Fri Jun 4 10:02:05 CDT 2010


Author: rgommers
Date: 2010-06-04 10:02:05 -0500 (Fri, 04 Jun 2010)
New Revision: 6484

Modified:
   branches/0.8.x/scipy/signal/tests/test_ltisys.py
Log:
BUG: Fix signal.ltisys test that crashes interpreter on Windows.

Modified: branches/0.8.x/scipy/signal/tests/test_ltisys.py
===================================================================
--- branches/0.8.x/scipy/signal/tests/test_ltisys.py	2010-06-03 14:00:53 UTC (rev 6483)
+++ branches/0.8.x/scipy/signal/tests/test_ltisys.py	2010-06-04 15:02:05 UTC (rev 6484)
@@ -14,7 +14,7 @@
     def test_basic(self):
         for p, q, r in [
             (3, 3, 3),
-            (0, 3, 3),
+            (1, 3, 3),
             (1, 1, 1)]:
             yield self.tst_matrix_shapes, p, q, r
 
@@ -64,7 +64,7 @@
         # This test triggers a "BadCoefficients" warning from scipy.signal.filter_design,
         # but the test passes.  I think the warning is related to the incomplete handling
         # of multi-input systems in scipy.signal.
-        
+
         # A system with two state variables, two inputs, and one output.
         A = np.array([[-1.0, 0.0], [0.0, -2.0]])
         B = np.array([[1.0, 0.0], [0.0, 1.0]])
@@ -116,7 +116,7 @@
 
     def test_03(self):
         """Specify an initial condition as a scalar."""
-        
+
         # First order system: x'(t) + x(t) = u(t), x(0)=3.0
         # Exact impulse response is x(t) = 4*exp(-t).
         system = ([1.0],[1.0,1.0])
@@ -175,7 +175,7 @@
 
     def test_03(self):
         """Specify an initial condition as a scalar."""
-        
+
         # First order system: x'(t) + x(t) = u(t), x(0)=3.0
         # Exact step response is x(t) = 1 + 2*exp(-t).
         system = ([1.0],[1.0,1.0])



More information about the Scipy-svn mailing list