[Numpy-discussion] numpy 1:1.0.4: numpy.average() returns the wrong result with weights
Anne Archibald
peridot.faceted at gmail.com
Sat Feb 23 00:55:32 EST 2008
On 22/02/2008, Travis E. Oliphant <oliphant at enthought.com> wrote:
> Is there a ticket on the NumPy trac for this? We won't see it if there
> isn't. Thanks for pointing us to the bug.
It appears to be fixed in SVN (that was quick!). But the Debian bug
report also points out a peculiar unnecessary use of eval; the code is
also slower and uses more memory than it has to. Attached is a patch
to cure that.
Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: average.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080223/6326ea87/attachment.bin>
More information about the NumPy-Discussion
mailing list