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

scipy-svn@scip... scipy-svn@scip...
Wed Feb 18 12:01:01 CST 2009


Author: stefan
Date: 2009-02-18 12:00:45 -0600 (Wed, 18 Feb 2009)
New Revision: 5557

Modified:
   trunk/scipy/signal/signaltools.py
Log:
Correct typos in signaltools.

Modified: trunk/scipy/signal/signaltools.py
===================================================================
--- trunk/scipy/signal/signaltools.py	2009-02-18 07:25:45 UTC (rev 5556)
+++ trunk/scipy/signal/signaltools.py	2009-02-18 18:00:45 UTC (rev 5557)
@@ -1540,7 +1540,7 @@
     edge=ntaps*3
 
     if x.ndim != 1:
-        raise ValueError, "filtflit only accepts 1-d arrays."
+        raise ValueError, "filtfilt only accepts 1-d arrays."
 
     #x must be bigger than edge
     if x.size < edge:
@@ -1553,7 +1553,7 @@
     if len(b) < ntaps:
         b=r_[b,zeros(len(a)-len(b))]
 
-    zi=lfiltir_zi(b,a)
+    zi = lfilter_zi(b,a)
 
     #Grow the signal to have edges for stabilizing
     #the filter with inverted replicas of the signal



More information about the Scipy-svn mailing list