diff options
author | sasha <sasha@localhost> | 2006-01-04 05:53:16 +0000 |
---|---|---|
committer | sasha <sasha@localhost> | 2006-01-04 05:53:16 +0000 |
commit | 3b4ee4f1edad964c20bb9dc7a32cedff4113a5cb (patch) | |
tree | 83ab3d8ecd81e2c6f52ac247ff3f1b93d228bed1 /scipy/base/ma.py | |
parent | 1c2c47b0cb743f47dcec7d537a99e717096b5007 (diff) | |
download | numpy-3b4ee4f1edad964c20bb9dc7a32cedff4113a5cb.tar.gz |
fixed sf bug 1395646
Diffstat (limited to 'scipy/base/ma.py')
-rw-r--r-- | scipy/base/ma.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/base/ma.py b/scipy/base/ma.py index a88d3cb4f..245351349 100644 --- a/scipy/base/ma.py +++ b/scipy/base/ma.py @@ -742,14 +742,14 @@ array(data = %(data)s, self.unmask() if self._mask is not None: raise MAError, 'Cannot convert masked element to a Python float.' - return float(self.data[...]) + return float(self.data.item()) def __int__(self): "Convert self to int." self.unmask() if self._mask is not None: raise MAError, 'Cannot convert masked element to a Python int.' - return int(self.data[...]) + return int(self.data.item()) def __getitem__(self, i): "Get item described by i. Not a copy as in previous versions." |