numpy bug

B

Boris Borcic

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
 
R

Robert Kern

Boris said:
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
 
D

David Isaac

Boris Borcic said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,508
Members
48,193
Latest member
DannyRober

Latest Threads

Top