[Scipy-tickets] [SciPy] #288: scipy.integrate.vectorize1 assumes user-supplied function returns a numpy type

SciPy scipy-tickets at scipy.net
Fri Jan 12 08:44:52 CST 2007


#288: scipy.integrate.vectorize1 assumes user-supplied function returns a numpy
type
-----------------------------+----------------------------------------------
 Reporter:  peridot          |        Owner:  somebody
     Type:  defect           |       Status:  new     
 Priority:  normal           |    Milestone:          
Component:  scipy.integrate  |      Version:          
 Severity:  normal           |   Resolution:          
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by havard):

 I replaced line 54 in scipy/integrate/quadrature.py,
             output = empty((n,), dtype=y0.dtype)
 with
             output = empty((n,), dtype=type(y0))

 The function now works fine with python floats.

 The bug is still in trunk (rev 2540).

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/288#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