[Scipy-svn] r6586 - trunk/scipy/signal/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Jul 3 12:39:35 EDT 2010
Author: rgommers
Date: 2010-07-03 11:39:35 -0500 (Sat, 03 Jul 2010)
New Revision: 6586
Modified:
trunk/scipy/signal/tests/test_ltisys.py
Log:
BUG: Fix signal.ltisys test that crashes interpreter on Windows.
Modified: trunk/scipy/signal/tests/test_ltisys.py
===================================================================
--- trunk/scipy/signal/tests/test_ltisys.py 2010-07-03 13:08:20 UTC (rev 6585)
+++ trunk/scipy/signal/tests/test_ltisys.py 2010-07-03 16:39:35 UTC (rev 6586)
@@ -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