diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-19 14:48:38 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-19 14:49:51 -0800 |
commit | 3637741aa438b1a17023d49379420891132d996c (patch) | |
tree | d81d21ea7b163a1417662f4213965104b7e800c8 /numpy/ma | |
parent | a1eee39c7adfc9ec8cc807b8d580ae8ca82cee1e (diff) | |
download | numpy-3637741aa438b1a17023d49379420891132d996c.tar.gz |
ENH: core: Clean things up a bit
* Make PyArray_CastToType always produce a copy
* Remove special cases in ndarray.astype
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 6873bef6c..98100621e 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -5552,8 +5552,8 @@ class mvoid(MaskedArray): def __getitem__(self, indx): "Get the index..." - _mask = self._mask.astype(np.void) - if _mask is not nomask and _mask[indx]: + m = self._mask + if m is not nomask and m[indx]: return masked return self._data[indx] |