[Scipy-svn] r2204 - trunk/Lib/signal
scipy-svn at scipy.org
scipy-svn at scipy.org
Tue Sep 19 19:42:11 EDT 2006
Author: stefan
Date: 2006-09-19 18:41:55 -0500 (Tue, 19 Sep 2006)
New Revision: 2204
Modified:
trunk/Lib/signal/ltisys.py
Log:
Do not modify shape of input arguments to lsim and lsim2.
Modified: trunk/Lib/signal/ltisys.py
===================================================================
--- trunk/Lib/signal/ltisys.py 2006-09-19 22:14:27 UTC (rev 2203)
+++ trunk/Lib/signal/ltisys.py 2006-09-19 23:41:55 UTC (rev 2204)
@@ -315,7 +315,7 @@
U = atleast_1d(U)
T = atleast_1d(T)
if len(U.shape) == 1:
- U.shape = (U.shape[0],1)
+ U = U.reshape((U.shape[0],1))
sU = U.shape
if len(T.shape) != 1:
raise ValueError, "T must be a rank-1 array."
@@ -382,7 +382,7 @@
U = atleast_1d(U)
T = atleast_1d(T)
if len(U.shape) == 1:
- U.shape = (U.shape[0],1)
+ U = U.reshape((U.shape[0],1))
sU = U.shape
if len(T.shape) != 1:
raise ValueError, "T must be a rank-1 array."
More information about the Scipy-svn
mailing list