[Numpy-discussion] maxima of masked arrays

Sasha ndarray at mac.com
Fri Feb 17 20:23:03 EST 2006

On 2/17/06, George Nurser <agn at noc.soton.ac.uk> wrote:
> But with a masked array there are problems.

What you see is a bug in ma.

> Are there any workarounds for this?

For now you can use

>>> ma.maximum.reduce(amask, 0)
array(data =
 [ 9 10 11 12],
      mask =
 [False False False False],

More information about the NumPy-Discussion mailing list