Skip to content

Commit 9ff0cdd

Browse files
committed
BUG: interpolate: fix for Python 2.4
1 parent 0840655 commit 9ff0cdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scipy/interpolate/interpolate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ def __init__(self, x, y, z, kind='linear', copy=True, bounds_error=False,
147147

148148
if self.z.size == len(self.x) * len(self.y):
149149
rectangular_grid = True
150-
if not all(self.x[1:] > self.x[:-1]):
150+
if not np.all(self.x[1:] > self.x[:-1]):
151151
j = np.argsort(self.x)
152152
self.x = self.x[j]
153153
self.z = self.z[:,j]
154-
if not all(self.y[1:] > self.y[:-1]):
154+
if not np.all(self.y[1:] > self.y[:-1]):
155155
j = np.argsort(self.y)
156156
self.y = self.y[j]
157157
self.z = self.z[j,:]

0 commit comments

Comments
 (0)