Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 2:04 PM, Pierre GM wrote: > Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array > with a view? That's sharing the data with a different mask, you should be > able to, too (np.ma works like that). I think you might be getting the proposals mixed up...

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 3:04 PM, Pierre GM wrote: > Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array > with a view? That's sharing the data with a different mask, > I was thinking about a mask on top of a mask, i.e., start with a bare array, take a masked view of that,

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Pierre GM
Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array with a view? That's sharing the data with a different mask, you should be able to, too (np.ma works like that). Sharing mask? That'd be great if we could... That way, there'd be almost nothing left to do to adapt np.ma... O

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:42 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:36 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wrote:

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:36 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: >>> On Fri, Jul 1, 20

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: >>> On Fri, Jul 1, 2011 at 3:01 P

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:32 PM, Charles R Harris wrote: > On Fri, Jul 1, 2011 at 1:46 PM, Dag Sverre Seljebotn < > d.s.seljeb...@astro.uio.no> wrote: > >> I propose a simple idea *for the long term* for generalizing Mark's >> proposal, that I hope may perhaps put some people behind Mark's concrete

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: >>> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 1:46 PM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > I propose a simple idea *for the long term* for generalizing Mark's > proposal, that I hope may perhaps put some people behind Mark's concrete > proposal in the short term. > > If key feature missing in Mar

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: >> >>> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn >>> wrote: >>> > I propose a simple idea *for the long term* for generali

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: > >> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn >> wrote: >> > I propose a simple idea *for the long term* for generalizing Mark's >> > proposal, that I hope may perhaps put some

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: > On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn > wrote: > > I propose a simple idea *for the long term* for generalizing Mark's > > proposal, that I hope may perhaps put some people behind Mark's concrete > > proposal in the short te

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Skipper Seabold
On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn wrote: > I propose a simple idea *for the long term* for generalizing Mark's > proposal, that I hope may perhaps put some people behind Mark's concrete > proposal in the short term. > > If key feature missing in Mark's proposal is the ability to

[Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Dag Sverre Seljebotn
I propose a simple idea *for the long term* for generalizing Mark's proposal, that I hope may perhaps put some people behind Mark's concrete proposal in the short term. If key feature missing in Mark's proposal is the ability to distinguish between different reason for NA-ness; IGNORE vs. NA. H