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

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


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


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


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