diff options
Diffstat (limited to 'numpy/ma/mrecords.py')
-rw-r--r-- | numpy/ma/mrecords.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/ma/mrecords.py b/numpy/ma/mrecords.py index c4975d56b..e38ea3803 100644 --- a/numpy/ma/mrecords.py +++ b/numpy/ma/mrecords.py @@ -349,6 +349,9 @@ The fieldname base is either `_data` or `_mask`.""" def __setitem__(self, indx, value): "Sets the given record to value." MaskedArray.__setitem__(self, indx, value) + if isinstance(indx, basestring): + self._fieldmask[indx] = ma.getmaskarray(value) + #............................................ def __setslice__(self, i, j, value): "Sets the slice described by [i,j] to `value`." |