From b83dfabfe169f32533a84d76b7e35ae544cb15a0 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 31 Dec 2005 05:54:07 +0000 Subject: Added other sort methods (heap, merge) --- scipy/base/ma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scipy/base/ma.py') diff --git a/scipy/base/ma.py b/scipy/base/ma.py index e0c81d8c8..3b8de05a3 100644 --- a/scipy/base/ma.py +++ b/scipy/base/ma.py @@ -610,7 +610,7 @@ class MaskedArray (object): def __array__ (self, t = None): "Special hook for numeric. Converts to numeric if possible." if self._mask is not None: - if oldnumeric.sometrue(oldnumeric.ravel(self._mask)): + if oldnumeric.ravel(self._mask).any(): raise MAError, \ """Cannot automatically convert masked array to numeric because data is masked in one or more locations. -- cgit v1.2.1