[Numpy-discussion] numpy.trapz() doesn't respect subclass

Ryan May rmay31@gmail....
Sun Mar 21 23:49:14 CDT 2010


Hi,

I found that trapz() doesn't work with subclasses:

http://projects.scipy.org/numpy/ticket/1438

A simple patch (attached) to change asarray() to asanyarray() fixes
the problem fine.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_trapz_subclass.diff
Type: application/octet-stream
Size: 483 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100321/f046be78/attachment.obj 


More information about the NumPy-Discussion mailing list