[NumPy-Tickets] [NumPy] #1123: nansum for empty or all nan arrays is not zero
NumPy Trac
numpy-tickets@scipy....
Sat Feb 6 09:47:32 CST 2010
#1123: nansum for empty or all nan arrays is not zero
-----------------------+----------------------------------------------------
Reporter: josefpktd | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone: 1.4.0
Component: numpy.lib | Version:
Keywords: |
-----------------------+----------------------------------------------------
Changes (by kwgoodman):
* cc: kwgoodman (added)
Comment:
I just ran into this issue while unit testing my labeled array class,
larry, for proper handling of empty larrys.
Here's my vote:
np.nansum([]) should return 0 just like np.sum([])
and the sum of an array with all NaNs should be NaN.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1123#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list