[Numpy-discussion] curious behavior with indexed assignment

2010-08-25 Thread Nathaniel Smith
So on IRC #scipy just now, Carlos Scheidegger pointed out some behavior that I at least find very surprising: >>> a = np.zeros(10) >>> a[:] = np.arange(3) ValueError: shape mismatch: objects cannot be broadcast to a single shape Okay, that's what we expected. But if we use explicit indices... >>

Re: [Numpy-discussion] bug in dtype.__eq__ method ?

2010-08-25 Thread Zbyszek Szmek
On Wed, Aug 25, 2010 at 12:41:37PM -0500, Travis Oliphant wrote: > > On Aug 23, 2010, at 11:55 AM, Zbyszek Szmek wrote: > > > On Mon, Aug 23, 2010 at 06:50:09PM +0200, Tiziano Zito wrote: > >> hi all, > >> we just noticed the following weird thing: > >> > >> $ python > >> Python 2.6.6rc2 (r266r

Re: [Numpy-discussion] bug in dtype.__eq__ method ?

2010-08-25 Thread Travis Oliphant
On Aug 23, 2010, at 11:55 AM, Zbyszek Szmek wrote: > On Mon, Aug 23, 2010 at 06:50:09PM +0200, Tiziano Zito wrote: >> hi all, >> we just noticed the following weird thing: >> >> $ python >> Python 2.6.6rc2 (r266rc2:84114, Aug 18 2010, 07:33:44) >> [GCC 4.4.5 20100816 (prerelease)] on linux2 >>

Re: [Numpy-discussion] Polynomials

2010-08-25 Thread Charles R Harris
On Wed, Aug 25, 2010 at 8:00 AM, Ralf Gommers wrote: > > > On Tue, Aug 24, 2010 at 10:58 PM, Travis Oliphant > wrote: > >> >> On Aug 23, 2010, at 10:30 PM, Charles R Harris wrote: >> >> > Hi All, >> > >> > I've gone ahead and implemented the Laguerre and Hermite (H and He) >> polynomials, but at

Re: [Numpy-discussion] Github migration?

2010-08-25 Thread Charles R Harris
On Wed, Aug 25, 2010 at 8:19 AM, Jason McCampbell wrote: > Chuck, > > I will update the wiki page on the Numpy developer site that discusses the > refactoring this week. Right now what's there reflects our plans before > they met the reality of code. Needless to say, the actual implementation >

Re: [Numpy-discussion] Github migration?

2010-08-25 Thread Charles R Harris
On Wed, Aug 25, 2010 at 8:19 AM, Jason McCampbell wrote: > Chuck, > > I will update the wiki page on the Numpy developer site that discusses the > refactoring this week. Right now what's there reflects our plans before > they met the reality of code. Needless to say, the actual implementation >

Re: [Numpy-discussion] Github migration?

2010-08-25 Thread Jason McCampbell
Chuck, I will update the wiki page on the Numpy developer site that discusses the refactoring this week. Right now what's there reflects our plans before they met the reality of code. Needless to say, the actual implementation differs in some of the details. Here is a very brief overview of the

Re: [Numpy-discussion] Polynomials

2010-08-25 Thread Ralf Gommers
On Tue, Aug 24, 2010 at 10:58 PM, Travis Oliphant wrote: > > On Aug 23, 2010, at 10:30 PM, Charles R Harris wrote: > > > Hi All, > > > > I've gone ahead and implemented the Laguerre and Hermite (H and He) > polynomials, but at this point I'm loath to add them to numpy as the > polynomial space is

Re: [Numpy-discussion] BUG: NumPy exposes the wrong include directory

2010-08-25 Thread David Cournapeau
2010/8/25 Stéfan van der Walt : > Hi all, > > Without this patch, numpy.distutils is broken on, amongs others, > Ubuntu.  This prohibits packages such as Enthought's Enable from being > built successfully. > > Would anyone object if I applied it to trunk? Could you wait a bit more - I would like t

Re: [Numpy-discussion] genfromtxt usage

2010-08-25 Thread Stéfan van der Walt
Hi Antoine On 25 August 2010 10:44, Antoine Dechaume wrote: > Hello, > I am trying to read a file with a variable number of values on each lines, > using genfromtxt and missing_values or filling_values arguments. > The usage of those arguments is not clear in the documentation, if what I am > try

[Numpy-discussion] genfromtxt usage

2010-08-25 Thread Antoine Dechaume
Hello, I am trying to read a file with a variable number of values on each lines, using genfromtxt and missing_values or filling_values arguments. The usage of those arguments is not clear in the documentation, if what I am trying to do is possible, how could I do it? Thanks, Antoine. ___

Re: [Numpy-discussion] BUG: NumPy exposes the wrong include directory

2010-08-25 Thread Stéfan van der Walt
Hi all, Without this patch, numpy.distutils is broken on, amongs others, Ubuntu. This prohibits packages such as Enthought's Enable from being built successfully. Would anyone object if I applied it to trunk? Regards Stéfan 2010/5/5 Stéfan van der Walt : > Hi all, > > Under Ubuntu, the NumPy h

[Numpy-discussion] ANN: Cython 0.13 released!

2010-08-25 Thread Dag Sverre Seljebotn
Forwarding; Crag Citro wrote: It is with *great* pleasure that I email to announce the release of Cython version 0.13! This release sets another milestone on the path towards Python compatibility and brings major new features and improvements for the usability of the Cython language. Download it