FIX: Non-integer indexing deprecation warnings

This commit is contained in:
Josh Warner (Mac)
2014-05-08 00:39:54 -05:00
parent fbda63962a
commit 1ca0eef825
7 changed files with 79 additions and 42 deletions
+2 -2
View File
@@ -729,7 +729,7 @@ class PolynomialTransform(GeometricTransform):
for j in range(order + 1):
for i in range(j + 1):
A[:rows, pidx] = xs ** (j - i) * ys ** i
A[rows:, pidx + u / 2] = xs ** (j - i) * ys ** i
A[rows:, pidx + u // 2] = xs ** (j - i) * ys ** i
pidx += 1
A[:rows, -1] = xd
@@ -741,7 +741,7 @@ class PolynomialTransform(GeometricTransform):
# singular value
params = - V[-1, :-1] / V[-1, -1]
self.params = params.reshape((2, u / 2))
self.params = params.reshape((2, u // 2))
def __call__(self, coords):
"""Apply forward transformation.