[Numpy-discussion] Clarifications in numpy.ma module

Maniteja Nandana maniteja.modesty067 at gmail.com
Tue Dec 30 05:49:11 EST 2014


Hi all,

I have recently been trying out various functions in masked array module of
numpy. I have got confused at a places in the *core.py *of *ma *module.

1. In the *masked_equal *method, the docstring doesn't suggest that
the *fill_value
*gets updated by the *value *parameter of the function, but this line (
https://github.com/numpy/numpy/blob/master/numpy/ma/core.py#L1978 ) sets
the *fill_value* as *value. *

2. The outputs of following functions - *any *(
https://github.com/numpy/numpy/blob/master/numpy/ma/core.py#L4327) - *all* (
https://github.com/numpy/numpy/blob/master/numpy/ma/core.py#L4280)
are similar, they return *np.ma.masked *if all the elements have masks in
the array, else return *True*.

3.  _*MaskedBinaryOperation : *Used for multiply, add, subtract
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20141230/68dc0318/attachment.html>


More information about the NumPy-Discussion mailing list