469,571 Members | 1,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,571 developers. It's quick & easy.

numpy bug

after a while trying to find the legal manner to file numpy bug reports,
since it's a simple one, I thought maybe a first step is to describe the bug
here. Then maybe someone will direct me to the right channel.

So, numpy appears not to correctly compute bitwise_and.reduce and
bitwise_or.reduce : instead of reducing over the complete axis, these methods
only take the extremities into account. Illustration :
from numpy import *
bitwise_or.reduce(array([8,256,32,8])) 8 import numpy
numpy.__version__ '0.9.8'


Platform : Win XP SP2, Python 2.4.2

HTH, bb
Jun 1 '06 #1
2 1165
Boris Borcic wrote:
after a while trying to find the legal manner to file numpy bug reports,
since it's a simple one, I thought maybe a first step is to describe the bug
here. Then maybe someone will direct me to the right channel.
Register an account on our Trac, and then you can create new tickets. We require
registration because we were getting bombarded with spam tickets.

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

Also, the appropriate mailing list would be numpy-discussion:

http://www.scipy.org/Mailing_Lists
So, numpy appears not to correctly compute bitwise_and.reduce and
bitwise_or.reduce : instead of reducing over the complete axis, these methods
only take the extremities into account. Illustration :
>>> from numpy import *
>>> bitwise_or.reduce(array([8,256,32,8]))

8


Indeed. Please create a ticket. In the meantime, the .accumulate() method works
correctly; you can use the last item to get the correct result for .reduce().

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Jun 1 '06 #2
"Boris Borcic" <bb*****@gmail.com> wrote in message
news:44**********@news.bluewin.ch...
after a while trying to find the legal manner to file numpy bug reports,
since it's a simple one, I thought maybe a first step is to describe the bug here. Then maybe someone will direct me to the right channel.

So, numpy appears not to correctly compute bitwise_and.reduce and
bitwise_or.reduce : instead of reducing over the complete axis, these methods only take the extremities into account. Illustration :
>>> from numpy import *
>>> bitwise_or.reduce(array([8,256,32,8])) 8 >>> import numpy
>>> numpy.__version__ '0.9.8' >>>


Platform : Win XP SP2, Python 2.4.2

Most bug reports start on the numpy list,
I believe. (See above.)

Cheers,
Alan Isaac
Jun 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Gary Wessle | last post: by
3 posts views Thread by Iljya | last post: by
reply views Thread by robert | last post: by
2 posts views Thread by robert | last post: by
2 posts views Thread by Chris Smith | last post: by
3 posts views Thread by Duncan Smith | last post: by
3 posts views Thread by Sean Davis | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.