[Numpy-discussion] missing function in numpy.ma?

Pierre GM pgmdevlist@gmail....
Fri Mar 28 13:37:49 CDT 2008

On Friday 28 March 2008 14:29:29 Charles Doutriaux wrote:
> Hi Pierre,
> Hum... something is still broken. But maybe you can help me figuring out
> if something dramtically changed

Something did indeed: numpy.ma.MaskedArray is now a subclass of ndarray, and 
inheriting from MaskedArray should follow the rules of ndarray subclassing. 
You'll find a brief overview of subclassing at this link:
In short,  you can't initialize it with a __init__, you need a combination of 
__new__ and __array_finalize__.

Don't hesitate to send me your class (at least the __init__ and a couple of 
specific methods) and I'll see how what I can do.

More information about the Numpy-discussion mailing list