diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-07-28 17:07:44 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:26:48 -0600 |
commit | a6e869b70b09df9381d341ed0d2b18f88d8fe3d6 (patch) | |
tree | 928eb0fab828921e9bab1bedbc02823e0c3b639d /numpy/ma | |
parent | 626949428752cc7d52e7f3fb3e8efbe97c3d9a21 (diff) | |
download | numpy-a6e869b70b09df9381d341ed0d2b18f88d8fe3d6.tar.gz |
BUG: ma: Fix a bug in numpy.ma hardmasks, exposed by the boolean indexing rewrite
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index e2e954a97..fdd5d2705 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -3040,7 +3040,7 @@ class MaskedArray(ndarray): mindx = mask_or(_mask[indx], mval, copy=True) dindx = self._data[indx] if dindx.size > 1: - dindx[~mindx] = dval + np.copyto(dindx, dval, where=~mindx) elif mindx is nomask: dindx = dval ndarray.__setitem__(_data, indx, dindx) |