summaryrefslogtreecommitdiff
path: root/scipy/base/ma.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/ma.py')
-rw-r--r--scipy/base/ma.py4
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."