[NumPy-Tickets] [NumPy] #1332: set_fill_value does not work properly for masked structured array
NumPy Trac
numpy-tickets@scipy....
Mon Feb 8 00:29:54 CST 2010
#1332: set_fill_value does not work properly for masked structured array
-------------------------+--------------------------------------------------
Reporter: robitaille | Owner: pierregm
Type: defect | Status: reopened
Priority: high | Milestone:
Component: numpy.ma | Version: devel
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Comment(by pierregm):
Good call! Should be fixed in r8094
FYI, {{{ma.empty}}} bypasses {{{MaskedArray.__new__}}}, so
{{{b._fill_value}}} defaulted to None. In that case, any modification to
the {{{fill_value}}} of an individual field could not propagate to the
array. When you called {{{repr(b)}}}, you actually set {{{_fill_value}}}
to something other than None (the default filling value defined from the
dtype), and then propagation worked.
Now, the {{{_fill_value}}} of structured masked arrays is checked in
{{{__array_finalize}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1332#comment:10>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list