473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1270
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a...
3
by: Iljya | last post by:
Hello, I need to pickle the type numpy.float32 but encounter an error when I try to do so. I am able to pickle the array itself, it is specifically the type that I cannot pickle. I am using:...
0
by: robert | last post by:
just a note - some speed comparisons : 0.60627370238398726 0.42836673376223189 0.36965815487747022 0.016557970357098384 0.15692469294117473 0.01951756438393204
2
by: robert | last post by:
in Gnuplot (Gnuplot.utils) the input array will be converted to a Numeric float array as shown below. When I insert a numpy array into Gnuplot like that below, numbers 7.44 are cast to 7.0 Why is...
2
by: Chris Smith | last post by:
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't...
5
by: robert | last post by:
Turning algs for old NumPy modules into numpy code I suffer from this: Upon further processing of returns of numpy calculations, lots of data in an apps object tree will become elementary numpy...
3
by: Duncan Smith | last post by:
Hello, Since moving to numpy I've had a few problems with my existing code. It basically revolves around the numpy scalar types. e.g. ------------------------------------------------ array(,...
5
by: Marc Oldenhof | last post by:
Hello all, I'm pretty new to Python, but use it a lot lately. I'm getting a crazy error trying to do operations on a string list after importing numpy. Minimal example: Python 2.5.1...
3
by: Sean Davis | last post by:
I have a set of numpy arrays which I would like to save to a gzip file. Here is an example without gzip: b=numpy.ones(1000000,dtype=numpy.uint8) a=numpy.zeros(1000000,dtype=numpy.uint8) fd =...
2
by: Travis Oliphant | last post by:
I wanted to point anybody interested to a blog post that describes a useful pattern for having a NumPy array that points to the memory created by a different memory manager than the standard one...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.