Hi All, There is a small bug in the initial conditions parameter in ellipap() in the filter_design.py module: File "/users/sransom/lib/python2.3/site-packages/scipy/signal/filter_design.py", line 1049, in ellipap disp=0) File "/users/sransom/lib/python2.3/site-packages/scipy/optimize/optimize.py", line 140, in fmin N = len(x0) TypeError: len() of unsized object Here is the "fix": 1048c1048 < m = optimize.fmin(kratio, 0.5, args=(krat,), maxfun=250, maxiter=250, ---
m = optimize.fmin(kratio, [0.5], args=(krat,), maxfun=250,
maxiter=250, Scott -- Scott M. Ransom Address: NRAO Phone: (434) 296-0320 520 Edgemont Rd. email: sransom@nrao.edu Charlottesville, VA 22903 USA GPG Fingerprint: 06A9 9553 78BE 16DB 407B FFCA 9BFA B6FF FFD3 2989
On Tue, Sep 05, 2006 at 02:29:10PM -0400, Scott Ransom wrote:
Hi All,
There is a small bug in the initial conditions parameter in ellipap() in the filter_design.py module:
File "/users/sransom/lib/python2.3/site-packages/scipy/signal/filter_design.py", line 1049, in ellipap disp=0) File "/users/sransom/lib/python2.3/site-packages/scipy/optimize/optimize.py", line 140, in fmin N = len(x0) TypeError: len() of unsized object
Fixed in SVN. Would you mind writing a test to see whether ellipap gives the correct answer? Thanks Stéfan
participants (2)
-
Scott Ransom
-
Stefan van der Walt