[Numpy-tickets] [NumPy] #577: Return value of sum of masked array is inconsistent
NumPy
numpy-tickets@scipy....
Wed Sep 12 14:30:32 CDT 2007
#577: Return value of sum of masked array is inconsistent
--------------------+-------------------------------------------------------
Reporter: reggie | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: 1.0.1
Severity: normal | Keywords: ma masked sum scalar
--------------------+-------------------------------------------------------
When calling the sum method of a masked array with no arguments, the
result can be either a scalar or a 1 element array depending on whether
the mask is nomask or not. I'm attaching a patch for ma.py below that
should fix this problem.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/577>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list