diff options
author | pierregm <pierregm@localhost> | 2008-05-14 22:08:33 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2008-05-14 22:08:33 +0000 |
commit | d7c77aae2d0766c9af901b3b98a23b0fedd70dc5 (patch) | |
tree | 3df4d8b91677c64f0f64a53185052b2ded23bc0e /numpy/ma/mrecords.py | |
parent | 8f60b4886081dbb6ba5ce0e6fc854473fd716151 (diff) | |
download | numpy-d7c77aae2d0766c9af901b3b98a23b0fedd70dc5.tar.gz |
extras : dropped the m prefix in mediff1d, mvander, mpolyfit
mrecords: fixed __setitem__ to update the mask if needed.
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`." |