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

Ryan May rmay31 at gmail.com
Mon Mar 22 00:49:14 EDT 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: 484 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100321/f046be78/attachment.obj>

More information about the NumPy-Discussion mailing list