[Scipy-svn] r5559 - trunk/scipy/signal

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Feb 18 13:02:35 EST 2009


Author: stefan
Date: 2009-02-18 12:02:23 -0600 (Wed, 18 Feb 2009)
New Revision: 5559

Modified:
   trunk/scipy/signal/signaltools.py
Log:
Allow non-array input to filtfilt.

Modified: trunk/scipy/signal/signaltools.py
===================================================================
--- trunk/scipy/signal/signaltools.py	2009-02-18 18:01:31 UTC (rev 5558)
+++ trunk/scipy/signal/signaltools.py	2009-02-18 18:02:23 UTC (rev 5559)
@@ -1535,6 +1535,7 @@
     return array(zi_return)
 
 def filtfilt(b,a,x):
+    b, a, x = map(asarray, [b, a, x])
     # FIXME:  For now only accepting 1d arrays
     ntaps=max(len(a),len(b))
     edge=ntaps*3




More information about the Scipy-svn mailing list