diff options
author | pierregm <pierregm@localhost> | 2008-08-06 00:12:01 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2008-08-06 00:12:01 +0000 |
commit | db148964e45b01604e6df0a8e0f3c35f2fc951c6 (patch) | |
tree | fb0d81f7567725a5a0e932dac72fea5be191fe53 | |
parent | 64423fdb18e8edec4d9a3bf24a305d4a3dbaa336 (diff) | |
download | numpy-db148964e45b01604e6df0a8e0f3c35f2fc951c6.tar.gz |
* MaskedArray.__new__: prevents self._optinfo to be overwritten (it's defined w/ the call to .view)
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index c8664c754..bb1e192c6 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -1228,7 +1228,6 @@ class MaskedArray(ndarray): # Process data............ _data = np.array(data, dtype=dtype, copy=copy, subok=True, ndmin=ndmin) _baseclass = getattr(data, '_baseclass', type(_data)) - _optinfo = {} # Check that we'ew not erasing the mask.......... if isinstance(data,MaskedArray) and (data.shape != _data.shape): copy = True @@ -1320,7 +1319,6 @@ class MaskedArray(ndarray): # Process extra options .. _data._hardmask = hard_mask _data._baseclass = _baseclass - _data._optinfo = _data._basedict = _optinfo return _data # def _update_from(self, obj): |