[Scipy-tickets] [SciPy] #362: cheb1ord gives negative order

SciPy scipy-tickets at scipy.net
Sun Jan 28 12:19:20 CST 2007


#362: cheb1ord gives negative order
--------------------------+-------------------------------------------------
 Reporter:  kumanna       |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  high          |    Milestone:          
Component:  scipy.signal  |      Version:  0.5.2   
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by mauger):

 Like so many scipy problems (or at least scipy filter problems!), I
 believe the root of this problem is type issues.

 {{{
 In [1]: from scipy import *

 In [2]: (n,Wn) = signal.cheb1ord([350,700],[430,600],0.5,40,analog=1)

 In [3]: n
 Out[3]: -2147483648

 In [4]: (n,Wn) = signal.cheb1ord([350.,700.],[430.,600.],0.5,40.,analog=1)

 In [5]: n
 Out[5]: 5
 }}}

 I'll submit a patch latter (basically just appending .astype(float) to the
 atleast_1d() calls at the beginning of the function).

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/362#comment:2>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list