#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