Re: [Numpy-discussion] empty_like for masked arrays

2013-07-17 Thread Nathaniel Smith
On Mon, Jul 15, 2013 at 2:33 PM, Gregorio Bastardo wrote: > Hi, > > On Mon, Jun 10, 2013 at 3:47 PM, Nathaniel Smith wrote: >> Hi all, >> >> Is there anyone out there using numpy masked arrays, who has an >> opinion on how empty_like (and its friends ones_like, zeros_like) >> should handle the ma

Re: [Numpy-discussion] empty_like for masked arrays

2013-07-15 Thread Gregorio Bastardo
Hi, On Mon, Jun 10, 2013 at 3:47 PM, Nathaniel Smith wrote: > Hi all, > > Is there anyone out there using numpy masked arrays, who has an > opinion on how empty_like (and its friends ones_like, zeros_like) > should handle the mask? > > Right now apparently if you call np.ma.empty_like on a masked

Re: [Numpy-discussion] empty_like for masked arrays

2013-06-10 Thread Eric Firing
On 2013/06/10 10:17 AM, Aldcroft, Thomas wrote: > I use np.ma , and for me the most intuitive would be the > second option where the new array matches the original array in shape > and dtype, but always has an empty mask. I always think of the *_like() > functions as just copying sha

Re: [Numpy-discussion] empty_like for masked arrays

2013-06-10 Thread Aldcroft, Thomas
On Mon, Jun 10, 2013 at 3:47 PM, Nathaniel Smith wrote: > Hi all, > > Is there anyone out there using numpy masked arrays, who has an > opinion on how empty_like (and its friends ones_like, zeros_like) > should handle the mask? > > Right now apparently if you call np.ma.empty_like on a masked arr

[Numpy-discussion] empty_like for masked arrays

2013-06-10 Thread Nathaniel Smith
Hi all, Is there anyone out there using numpy masked arrays, who has an opinion on how empty_like (and its friends ones_like, zeros_like) should handle the mask? Right now apparently if you call np.ma.empty_like on a masked array, you get a new masked array that shares the original array's mask,