[Scipy-svn] r2542 - trunk/Lib/signal

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Jan 12 14:26:01 CST 2007


Author: rkern
Date: 2007-01-12 14:25:59 -0600 (Fri, 12 Jan 2007)
New Revision: 2542

Modified:
   trunk/Lib/signal/filter_design.py
Log:
Be explicit about where sum comes from.

Modified: trunk/Lib/signal/filter_design.py
===================================================================
--- trunk/Lib/signal/filter_design.py	2007-01-12 16:42:30 UTC (rev 2541)
+++ trunk/Lib/signal/filter_design.py	2007-01-12 20:25:59 UTC (rev 2542)
@@ -1,5 +1,3 @@
-## Automatically adapted for scipy Oct 21, 2005 by convertcode.py
-
 """Filter design.
 """
 
@@ -7,7 +5,7 @@
 from numpy.core.umath import *
 from numpy import atleast_1d, poly, polyval, roots, imag, real, asarray,\
      allclose, resize, pi, concatenate, absolute, logspace
-from numpy import mintypecode, select, sum
+from numpy import mintypecode, select
 from scipy import special, optimize, linalg
 from scipy.misc import comb
 import string, types
@@ -1539,4 +1537,4 @@
     alpha = N//2
     m = numpy.arange(0,N)
     h = win*special.sinc(cutoff*(m-alpha))
-    return h / sum(h,axis=0)
+    return h / numpy.sum(h,axis=0)



More information about the Scipy-svn mailing list