Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Pierre GM
On Sep 30, 2010, at 12:15 AM, Gökhan Sever wrote: > On Wed, Sep 29, 2010 at 5:09 PM, Pierre GM wrote: >> >> On Sep 29, 2010, at 11:46 PM, josef.p...@gmail.com wrote: >>> >>> any of the ma stack array function might also work, or not? >> >> In np.ma.extras ? Most likely, yes > > This seems to

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Pierre GM
On Sep 30, 2010, at 12:01 AM, Gökhan Sever wrote: >> You're using a standard numpy function on a masked array. It's hardly >> surprising that you run into some issues. You should use the np.ma >> equivalent. Except of course that the equivalent doesn't exist yet... Please >> open a ticket. >

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Gökhan Sever
On Wed, Sep 29, 2010 at 5:09 PM, Pierre GM wrote: > > On Sep 29, 2010, at 11:46 PM, josef.p...@gmail.com wrote: >> >> any of the ma stack array function might also work, or not? > > In np.ma.extras ? Most likely, yes This seems to do what I want: I[262]: np.ma.hstack(all_measured) O[262]: masked

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Pierre GM
On Sep 29, 2010, at 11:46 PM, josef.p...@gmail.com wrote: > > any of the ma stack array function might also work, or not? In np.ma.extras ? Most likely, yes ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/list

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Gökhan Sever
> You're using a standard numpy function on a masked array. It's hardly > surprising that you run into some issues. You should use the np.ma > equivalent. Except of course that the equivalent doesn't exist yet... Please > open a ticket. Here it comes -> http://projects.scipy.org/numpy/ticket/16

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread josef . pktd
On Wed, Sep 29, 2010 at 5:37 PM, Pierre GM wrote: > > On Sep 29, 2010, at 11:01 PM, Gökhan Sever wrote: > >> Hello, >> >> Consider these two simple masked arrays: >> >> I[188]: a = np.ma.masked_equal([1,2,3], value=2) >> >> I[189]: b = np.ma.masked_equal([4,3,2], value=2) >> >> An operation like t

Re: [Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Pierre GM
On Sep 29, 2010, at 11:01 PM, Gökhan Sever wrote: > Hello, > > Consider these two simple masked arrays: > > I[188]: a = np.ma.masked_equal([1,2,3], value=2) > > I[189]: b = np.ma.masked_equal([4,3,2], value=2) > > An operation like this voids the mask: > > I[190]: np.append(a,b) > O[190]: >

[Numpy-discussion] Appending/combining masked arrays

2010-09-29 Thread Gökhan Sever
Hello, Consider these two simple masked arrays: I[188]: a = np.ma.masked_equal([1,2,3], value=2) I[189]: b = np.ma.masked_equal([4,3,2], value=2) An operation like this voids the mask: I[190]: np.append(a,b) O[190]: masked_array(data = [1 2 3 4 3 2], mask = False, fill_valu