[SciPy-user] small bug in filter_design.py

Scott Ransom sransom at nrao.edu
Tue Sep 5 13:29:10 CDT 2006


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 at nrao.edu             Charlottesville, VA 22903 USA
GPG Fingerprint: 06A9 9553 78BE 16DB 407B  FFCA 9BFA B6FF FFD3 2989


More information about the SciPy-user mailing list