[NumPy-Tickets] [NumPy] #1480: apply_over_axes does not take the mask into account
NumPy Trac
numpy-tickets@scipy....
Fri May 7 15:38:48 CDT 2010
#1480: apply_over_axes does not take the mask into account
-----------------------+----------------------------------------------------
Reporter: dhuard | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.lib | Version: devel
Keywords: |
-----------------------+----------------------------------------------------
The mask of an array is ignored by apply_over_axes and apply_along_axis.
{{{
>>> o = np.ma.array([[1,1],[1,1]], mask=[[0,0],[0,1]])
>>> o.sum()
3
>>> np.apply_over_axes(np.sum, o, [0,1])
array([[4]])
}}}
There is no mention of masked arrays handling in the docstring.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1480>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list