Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Christoph Gohlke
On 6/13/2011 5:58 AM, Ralf Gommers wrote: Hi, I am pleased to announce the availability of the first release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs: #1834 einsum fails for specific shapes #1837 einsum throws nan or freezes python for specific array

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Bruce Southey
On 06/19/2011 05:21 AM, Ralf Gommers wrote: On Tue, Jun 14, 2011 at 5:28 AM, Bruce Southey bsout...@gmail.com mailto:bsout...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen p...@iki.fi mailto:p...@iki.fi wrote: On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey

[Numpy-discussion] replacing the mechanism for dispatching ufuncs

2011-06-20 Thread Mark Wiebe
NumPy has a mechanism built in to allow subclasses to adjust or override aspects of the ufunc behavior. While this goal is important, this mechanism only allows for very limited customization, making for instance the masked arrays unable to work with the native ufuncs in a full and proper way. I

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Bruce Southey
On 06/19/2011 05:21 AM, Ralf Gommers wrote: On Tue, Jun 14, 2011 at 5:28 AM, Bruce Southey bsout...@gmail.com mailto:bsout...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen p...@iki.fi mailto:p...@iki.fi wrote: On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey wrote:

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 4:20 PM, Bruce Southey bsout...@gmail.com wrote: ** On 06/19/2011 05:21 AM, Ralf Gommers wrote: On Tue, Jun 14, 2011 at 5:28 AM, Bruce Southey bsout...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen p...@iki.fi wrote: On Mon, 13 Jun 2011

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 12:48 AM, Mark Wiebe mwwi...@gmail.com wrote: On Mon, Jun 13, 2011 at 7:58 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Hi, I am pleased to announce the availability of the first release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs:

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 9:19 AM, Christoph Gohlke cgoh...@uci.edu wrote: On 6/13/2011 5:58 AM, Ralf Gommers wrote: Hi, I am pleased to announce the availability of the first release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs: #1834 einsum fails for

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 8:50 PM, Bruce Southey bsout...@gmail.com wrote: I copied the files but that just moves the problem. So that patch is incorrect. I get the same errors on Fedora 15 supplied Python3.2 for numpy 1.6.0 and using git from 'https://github.com/rgommers/numpy.git'. Numpy

[Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
At the moment I'm using numpy.dot to convert a WxHx3 RGB image to a grayscale image: src_mono = np.dot(src_rgb.astype(np.float), np.ones(3)/3.); This seems quite slow though (several seconds for a 3 megapixel image) - is there a more specialized routine better suited to this? Cheers, Alex

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Mark Wiebe
On Mon, Jun 20, 2011 at 2:33 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Mon, Jun 20, 2011 at 12:48 AM, Mark Wiebe mwwi...@gmail.com wrote: On Mon, Jun 13, 2011 at 7:58 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Hi, I am pleased to announce the availability of the

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Zachary Pincus
You could try: src_mono = src_rgb.astype(float).sum(axis=-1) / 3. But that speed does seem slow. Here are the relevant timings on my machine (a recent MacBook Pro) for a 3.1-megapixel-size array: In [16]: a = numpy.empty((2048, 1536, 3), dtype=numpy.uint8) In [17]: timeit

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Eric Firing
On 06/20/2011 10:41 AM, Zachary Pincus wrote: You could try: src_mono = src_rgb.astype(float).sum(axis=-1) / 3. But that speed does seem slow. Here are the relevant timings on my machine (a recent MacBook Pro) for a 3.1-megapixel-size array: In [16]: a = numpy.empty((2048, 1536, 3),

[Numpy-discussion] Numpy/Scipy Testing Guidelines URL?

2011-06-20 Thread Skipper Seabold
Are the testing guidelines included in the HTML docs anywhere? If I recall, they used to be, and I couldn't find them with a brief look/google. I'd like to link to them. Maybe the rendered rst page is considered their new home? https://github.com/numpy/numpy/blob/master/doc/TESTS.rst.txt Skipper

Re: [Numpy-discussion] Numpy/Scipy Testing Guidelines URL?

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 11:36 PM, Skipper Seabold jsseab...@gmail.comwrote: Are the testing guidelines included in the HTML docs anywhere? If I recall, they used to be, and I couldn't find them with a brief look/google. I'd like to link to them. Maybe the rendered rst page is considered their

Re: [Numpy-discussion] Numpy/Scipy Testing Guidelines URL?

2011-06-20 Thread Skipper Seabold
On Mon, Jun 20, 2011 at 5:41 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Jun 20, 2011 at 11:36 PM, Skipper Seabold jsseab...@gmail.com wrote: Are the testing guidelines included in the HTML docs anywhere? If I recall, they used to be, and I couldn't find them with a brief

Re: [Numpy-discussion] Numpy/Scipy Testing Guidelines URL?

2011-06-20 Thread Ralf Gommers
On Mon, Jun 20, 2011 at 11:44 PM, Skipper Seabold jsseab...@gmail.comwrote: On Mon, Jun 20, 2011 at 5:41 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Jun 20, 2011 at 11:36 PM, Skipper Seabold jsseab...@gmail.com wrote: Are the testing guidelines included in the HTML

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
Thanks, that's helpful. I'm now getting comparable times on a different machine, it must be something else slowing down my machine more generally, not just numpy. On Mon, Jun 20, 2011 at 5:11 PM, Eric Firing efir...@hawaii.edu wrote: On 06/20/2011 10:41 AM, Zachary Pincus wrote: You could

Re: [Numpy-discussion] Object array from list in 1.6.0 (vs. 1.5.1)

2011-06-20 Thread Mark Wiebe
This pull request which needs some testing should fix the issue: https://github.com/numpy/numpy/pull/92 -Mark On Fri, Jun 10, 2011 at 11:40 AM, Ken Basye kbas...@jhu.edu wrote: Dear folks, I have some code that stopped working with 1.6.0 and I'm wondering if there's a better way to

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Christopher Barker
Alex Flint wrote: Thanks, that's helpful. I'm now getting comparable times on a different machine, it must be something else slowing down my machine more generally, not just numpy. you also might want to get a bit fancier than simply scaling linearly R,G, and B don't necessarily all

[Numpy-discussion] datetime pull request for review and build/test

2011-06-20 Thread Mark Wiebe
https://github.com/numpy/numpy/pull/93 The summary: * Tighten up date unit vs time unit casting rules, and integrate the NPY_CASTING enum deeper into the datetime conversions * Determine a unit when converting from a string array, similar to when converting from lists of strings * Switch

Re: [Numpy-discussion] npyio - gzip 271 Error -3 while decompressing ?

2011-06-20 Thread Derek Homeier
Moin Denis, On 20 Jun 2011, at 19:04, denis wrote: a separate question, have you run genfromtxt( xx.csv.gz ) lately ? I haven't, and I was not particularly involved with it before this patch, so this would possibly be better addressed to the list. On on

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-20 Thread Bruce Southey
On Mon, Jun 20, 2011 at 2:43 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Jun 20, 2011 at 8:50 PM, Bruce Southey bsout...@gmail.com wrote: I copied the files but that just moves the problem. So that patch is incorrect. I get the same errors on Fedora 15 supplied Python3.2

[Numpy-discussion] numpy submodules missing in intersphinx objects.inv?

2011-06-20 Thread Skipper Seabold
I was just trying to link to the numpy.testing module but can't using intersphinx. Does anyone know why certain submodules aren't included in objects.inv? It looks as though it has something to do either with having a reference at the top of the rst file (so you can :ref: link to it) or having