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

2011-06-20 Thread Ralf Gommers
On Tue, Jun 21, 2011 at 3:55 AM, Bruce Southey wrote: > On Mon, Jun 20, 2011 at 2:43 PM, Ralf Gommers > wrote: > > > > > > On Mon, Jun 20, 2011 at 8:50 PM, Bruce Southey > wrote: > >> > >> I copied the files but that just moves the problem. So that patch is > >> incorrect. > >> > >> I get the s

[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 that

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 wrote: > > > On Mon, Jun 20, 2011 at 8:50 PM, Bruce Southey 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 fr

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 .../scikits.learn-0.8/scikits/lea

[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 local/ut

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 contr

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 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 replace it than wha

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 wrote: > On 06/20/2011 10:41 AM, Zachary Pincus wrote: > > You could try: > > src_mono =

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 wrote: > On Mon, Jun 20, 2011 at 5:41 PM, Ralf Gommers > wrote: > > > > > > On Mon, Jun 20, 2011 at 11:36 PM, Skipper Seabold > > wrote: > >> > >> Are the testing guidelines included in the HTML docs anywhere? If I > >> recall, they used to be, a

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 wrote: > > > On Mon, Jun 20, 2011 at 11:36 PM, Skipper Seabold > 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 >> look/google. I'd like to link to the

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 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 > look/google. I'd like to link to them. Maybe the rendered rst page is > considered their new home? > Th

[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] 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), dt

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 numpy.dot(a.astype(floa

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 wrote: > On Mon, Jun 20, 2011 at 12:48 AM, Mark Wiebe 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-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 Ralf Gommers
On Mon, Jun 20, 2011 at 8:50 PM, Bruce Southey 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 is getting > F

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 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 specific

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 wrote: > On Mon, Jun 13, 2011 at 7: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 specif

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 wrote: > ** > On 06/19/2011 05:21 AM, Ralf Gommers wrote: > > > > On Tue, Jun 14, 2011 at 5:28 AM, Bruce Southey wrote: > >> On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen 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 Bruce Southey
On 06/19/2011 05:21 AM, Ralf Gommers wrote: On Tue, Jun 14, 2011 at 5:28 AM, Bruce Southey mailto:bsout...@gmail.com>> wrote: On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen mailto:p...@iki.fi>> wrote: > On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey wrote: [clip] >> OSError: >> /usr/loca

[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 wo

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 > wrote: On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen mailto:p...@iki.fi>> wrote: > On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey wrote: > [clip] >> OSE

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