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

2011-07-15 Thread Marcin Wlodarczak
On 14.07.2011 12:36, Christopher Jordan-Squire wrote: >> > 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,

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