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

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Sep 5 19:46:25 CDT 2006


Author: stefan
Date: 2006-09-05 19:46:12 -0500 (Tue, 05 Sep 2006)
New Revision: 2191

Modified:
   trunk/Lib/signal/filter_design.py
Log:
filter_design's ellipap should specify coefficients as an array in
call to optimize.


Modified: trunk/Lib/signal/filter_design.py
===================================================================
--- trunk/Lib/signal/filter_design.py	2006-09-05 08:01:10 UTC (rev 2190)
+++ trunk/Lib/signal/filter_design.py	2006-09-06 00:46:12 UTC (rev 2191)
@@ -1045,7 +1045,7 @@
     else:
         krat = N*val[0] / val[1]
 
-    m = optimize.fmin(kratio, 0.5, args=(krat,), maxfun=250, maxiter=250,
+    m = optimize.fmin(kratio, [0.5], args=(krat,), maxfun=250, maxiter=250,
                       disp=0)
     if m < 0 or m > 1:
         m = optimize.fminbound(kratio, 0, 1, args=(krat,), maxfun=250,



More information about the Scipy-svn mailing list