diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2014-07-16 11:03:43 +0200 |
---|---|---|
committer | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2014-07-17 23:37:16 +0200 |
commit | 4ed00c7e3b3206d4abf5536d4d0014fb08d22bc2 (patch) | |
tree | 170f5fcb3adb19faeefe4bea4434a9e7a1a39ffa /numpy/ma/core.py | |
parent | 88cf0e4f6d722b12f2d57e3acb6452d6a015cc93 (diff) | |
download | numpy-4ed00c7e3b3206d4abf5536d4d0014fb08d22bc2.tar.gz |
BUG Make ma[row][rec] setter work by avoiding copy in mvoid.__new__
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r-- | numpy/ma/core.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 5c566b92c..b78d9ec7f 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -5594,9 +5594,8 @@ class mvoid(MaskedArray): """ # def __new__(self, data, mask=nomask, dtype=None, fill_value=None, - hardmask=False): - dtype = dtype or data.dtype - _data = np.array(data, dtype=dtype) + hardmask=False, copy=False, subok=True): + _data = np.array(data, copy=copy, subok=subok, dtype=dtype) _data = _data.view(self) _data._hardmask = hardmask if mask is not nomask: |