[NumPy-Tickets] [NumPy] #1623: Masked array equivalent append function
NumPy Trac
numpy-tickets@scipy....
Wed Sep 29 16:58:24 CDT 2010
#1623: Masked array equivalent append function
-------------------------+--------------------------------------------------
Reporter: gsever | Owner: pierregm
Type: enhancement | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.ma | Version: 1.5.0
Keywords: |
-------------------------+--------------------------------------------------
Current np.append implementation can't handle masked array appending.
{{{
I[1]: a = np.ma.masked_equal([1,2,3], value=2)
I[2]: b = np.ma.masked_equal([4,3,2], value=2)
I[3]: np.append(a,b)
O[3]:
masked_array(data = [1 2 3 4 3 2],
mask = False,
fill_value = 999999)
}}}
It would be nice to have np.ma.append() to operate on masked arrays
properly. The desired output from that given piece would be:
{{{
np.ma.append(a,b)
masked_array(data = [1 -- 3 4 3 --],
mask = [False, True, False, False, False, True],
fill_value = 999999)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1623>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list