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

scipy-svn@scip... scipy-svn@scip...
Mon Nov 12 23:24:33 CST 2007


Author: jarrod.millman
Date: 2007-11-12 23:24:31 -0600 (Mon, 12 Nov 2007)
New Revision: 3520

Modified:
   trunk/scipy/signal/filter_design.py
Log:
replace map with list comprehension


Modified: trunk/scipy/signal/filter_design.py
===================================================================
--- trunk/scipy/signal/filter_design.py	2007-11-13 04:51:34 UTC (rev 3519)
+++ trunk/scipy/signal/filter_design.py	2007-11-13 05:24:31 UTC (rev 3520)
@@ -400,7 +400,7 @@
     SEE ALSO butterord, cheb1ord, cheb2ord, ellipord
     """
 
-    ftype, btype, output = map(string.lower, (ftype, btype, output))
+    ftype, btype, output = [string.lower(x) for x in (ftype, btype, output)]
     Wn = asarray(Wn)
     try:
         btype = band_dict[btype]



More information about the Scipy-svn mailing list