Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Charles R Harris
On Sat, Apr 28, 2012 at 10:58 AM, Neal Becker wrote: > Nathaniel Smith wrote: > > > On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley > > wrote: > >> So, assuming numpy.ndarray became a strict subclass of some new masked > >> array, it looks plausible that adding just a few checks to > numpy.n

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Neal Becker
Nathaniel Smith wrote: > On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley > wrote: >> So, assuming numpy.ndarray became a strict subclass of some new masked >> array, it looks plausible that adding just a few checks to numpy.ndarray to >> exclude the masked superclass would prevent much downst

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Nathaniel Smith
On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley wrote: > So, assuming numpy.ndarray became a strict subclass of some new masked > array, it looks plausible that adding just a few checks to numpy.ndarray to > exclude the masked superclass would prevent much downstream code from > accidentally o

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Richard Hattersley
On 27 April 2012 17:42, Travis Oliphant wrote: > > 1) There is a lot of code out there that does not know anything about > masks and is not used to checking for masks.It enlarges the basic > abstraction in a way that is not backwards compatible *conceptually*. > This smells fishy to me and I

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Travis Oliphant
On Apr 25, 2012, at 10:58 AM, Richard Hattersley wrote: > The masked array discussions have brought up all sorts of interesting topics > - too many to usefully list here - but there's one aspect I haven't spotted > yet. Perhaps that's because it's flat out wrong, or crazy, or just too > awkwar

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Charles R Harris
On Fri, Apr 27, 2012 at 9:16 AM, wrote: > On Fri, Apr 27, 2012 at 10:33 AM, Charles R Harris > wrote: > > > > > > On Fri, Apr 27, 2012 at 8:15 AM, Charles R Harris > > wrote: > >> > >> > >> > >> On Wed, Apr 25, 2012 at 9:58 AM, Richard Hattersley > >> wrote: > >>> > >>> The masked array discus

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Richard Hattersley
Hi all, Thanks for all your responses and for your patience with a newcomer. Don't worry - I'm not going to give up yet. It's all just part of my learning the ropes. On 27 April 2012 14:05, Benjamin Root wrote: > Your idea is interesting, but doesn't it require C++? Or maybe you > are thinking

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread josef . pktd
On Fri, Apr 27, 2012 at 10:33 AM, Charles R Harris wrote: > > > On Fri, Apr 27, 2012 at 8:15 AM, Charles R Harris > wrote: >> >> >> >> On Wed, Apr 25, 2012 at 9:58 AM, Richard Hattersley >> wrote: >>> >>> The masked array discussions have brought up all sorts of interesting >>> topics - too many

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Charles R Harris
On Fri, Apr 27, 2012 at 8:15 AM, Charles R Harris wrote: > > > On Wed, Apr 25, 2012 at 9:58 AM, Richard Hattersley > wrote: > >> The masked array discussions have brought up all sorts of interesting >> topics - too many to usefully list here - but there's one aspect I haven't >> spotted yet. Per

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Charles R Harris
On Wed, Apr 25, 2012 at 9:58 AM, Richard Hattersley wrote: > The masked array discussions have brought up all sorts of interesting > topics - too many to usefully list here - but there's one aspect I haven't > spotted yet. Perhaps that's because it's flat out wrong, or crazy, or just > too awkward

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Nathaniel Smith
On Fri, Apr 27, 2012 at 11:32 AM, Richard Hattersley wrote: > I know used a somewhat jokey tone in my original posting, but fundamentally > it was a serious question concerning a live topic. So I'm curious about the > lack of response. Has this all been covered before? > > Sorry if I'm being too i

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Benjamin Root
On Fri, Apr 27, 2012 at 6:32 AM, Richard Hattersley wrote: > I know used a somewhat jokey tone in my original posting, but > fundamentally it was a serious question concerning a live topic. So I'm > curious about the lack of response. Has this all been covered before? > > Sorry if I'm being too im

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread Richard Hattersley
I know used a somewhat jokey tone in my original posting, but fundamentally it was a serious question concerning a live topic. So I'm curious about the lack of response. Has this all been covered before? Sorry if I'm being too impatient! On 25 April 2012 16:58, Richard Hattersley wrote: > The

[Numpy-discussion] A crazy masked-array thought

2012-04-25 Thread Richard Hattersley
The masked array discussions have brought up all sorts of interesting topics - too many to usefully list here - but there's one aspect I haven't spotted yet. Perhaps that's because it's flat out wrong, or crazy, or just too awkward to be helpful. But ... Shouldn't masked arrays (MA) be a superclas