Re: [Numpy-discussion] Fwd: [Enthought-Dev] Linking issues with libX11.so

2011-07-14 Thread Ralf Gommers
On Wed, Jul 13, 2011 at 11:10 PM, Ilan Schnell wrote: > Hello List, > > Varun, who is a debian packager ran into some problems while > compiling Enable, as it uses numpy.distutils, which did not locate > the location of the X11 libraries correctly. Maybe this can be fixed > in the numpy 1.6.1 rel

Re: [Numpy-discussion] Build error on Windows

2011-07-14 Thread Christoph Gohlke
On 7/14/2011 6:56 PM, Chris Barker wrote: Hi folks, I'm trying to build numpy HEAD on Windows in preparation for the SciPy sprints tomorrow. I've never built numpy on Windows, and I'm new to git, so I could be doing any number of things wrong. I think I have the latest code: C:\Documents and

[Numpy-discussion] Build error on Windows

2011-07-14 Thread Chris Barker
Hi folks, I'm trying to build numpy HEAD on Windows in preparation for the SciPy sprints tomorrow. I've never built numpy on Windows, and I'm new to git, so I could be doing any number of things wrong. I think I have the latest code: C:\Documents and Settings\Chris\My Documents\SciPy\numpy_git

Re: [Numpy-discussion] type-casting differences for comparisons

2011-07-14 Thread Robert Kern
On Thu, Jul 14, 2011 at 15:43, Benjamin Root wrote: > I just came across a real-head scratcher that took me a bit to figure out. I > don't know if it counts as a bug or not. > > I have an array with dtype "f4" and a separate python float. Some elements > of this array gets assigned this numpy floa

[Numpy-discussion] type-casting differences for comparisons

2011-07-14 Thread Benjamin Root
I just came across a real-head scratcher that took me a bit to figure out. I don't know if it counts as a bug or not. I have an array with dtype "f4" and a separate python float. Some elements of this array gets assigned this numpy float64 scalar value. (I know, I should be better off with a mask,

Re: [Numpy-discussion] Masking entries in structured arrays

2011-07-14 Thread Christopher Jordan-Squire
On Thu, Jul 14, 2011 at 4:09 AM, Marcin Wlodarczak < mwlodarc...@uni-bielefeld.de> wrote: > > Hi, > > I was wondering whether it is possible to mask specific entries in a > structured array. If I try to do the following: > > x = ma.masked_array([(2, 1.), (8, 2.)], dtype=[('a',int), ('b', float)])

[Numpy-discussion] Masking entries in structured arrays

2011-07-14 Thread Marcin Wlodarczak
Hi, I was wondering whether it is possible to mask specific entries in a structured array. If I try to do the following: x = ma.masked_array([(2, 1.), (8, 2.)], dtype=[('a',int), ('b', float)]) x_masked = ma.masked_equal(x, 2) I get "AttributeError: 'NotImplementedType' object has no attribute