Re: [Numpy-discussion] Help on subclassing numpy.ma: __array_wrap__

2009-03-03 Thread Pierre GM
Kevin, Sorry for the delayed answer. > > (a) Is MA intended to be subclassed? Yes, that's actually the reason why the class was rewritten, to simplify subclassing. As Josef suggested, you can check the scikits.timeseries package that makes an extensive use of MaskedArray as baseclass. > >

Re: [Numpy-discussion] Help on subclassing numpy.ma: __array_wrap__

2009-03-01 Thread josef . pktd
On Sun, Mar 1, 2009 at 10:37 AM, Kevin Dunn wrote: > Hi everyone, > > I'm subclassing Numpy's MaskedArray to create a data class that handles > missing data, but adds some extra info I need to carrry around. However I've > been having problems keeping this extra info attached to the subclass > ins

[Numpy-discussion] Help on subclassing numpy.ma: __array_wrap__

2009-03-01 Thread Kevin Dunn
Hi everyone, I'm subclassing Numpy's MaskedArray to create a data class that handles missing data, but adds some extra info I need to carrry around. However I've been having problems keeping this extra info attached to the subclass instances after performing operations on them. The bare-bones scr