[Numpy-discussion] np.ma.argmax not respecting the mask?
Chao YUE
chaoyuejoy at gmail.com
Tue Jul 9 08:55:53 EDT 2013
Dear all,
I am using 1.7.1 version of numpy and np.ma.argmax is not repecting the
mask?
I expect for all data that are masked, it should also return a mask, but
this is not
the case.
In [96]: d3
Out[96]:
masked_array(data =
[[-- -- -- -- 4]
[5 -- 7 8 9]],
mask =
[[ True True True True False]
[False True False False False]],
fill_value = 6)
In [97]: np.ma.argmax(d3,axis=0)
Out[97]: array([1, 0, 1, 1, 1])
In [98]: np.__version__
Out[98]: '1.7.1'
Can I file a bug report on this?
thanks,
Chao
--
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130709/ce8e1dd9/attachment.html>
More information about the NumPy-Discussion
mailing list