summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-01-14 04:05:24 +0000
committersasha <sasha@localhost>2006-01-14 04:05:24 +0000
commit438efdea7004a9d9962184854dcb02df82e6f897 (patch)
tree7e294f60c782a592cc4e9c7aaa44c2b3c0e0261f /numpy/core/ma.py
parentc5d8aaf28f1fad0baf3b9d8c867b66872f2c0f25 (diff)
downloadnumpy-438efdea7004a9d9962184854dcb02df82e6f897.tar.gz
fixed printing of masked zero-rank arrays
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 86b8fb79f..d8c63ddcd 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -684,6 +684,9 @@ class MaskedArray (object):
# XXX: for the masked singleton? 2005-01-05 -- sasha
if self is masked:
return str(f)
+ m = self._mask
+ if m is not nomask and m.shape == () and m:
+ return str(f)
# convert to object array to make filled work
self = self.astype(object)
else: