From 3637741aa438b1a17023d49379420891132d996c Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Wed, 19 Jan 2011 14:48:38 -0800 Subject: ENH: core: Clean things up a bit * Make PyArray_CastToType always produce a copy * Remove special cases in ndarray.astype --- numpy/ma/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/ma') 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] -- cgit v1.2.1