BUG: Remove numpy 2 usage of .astype.

This commit is contained in:
Stefan van der Walt
2011-09-26 14:14:23 -07:00
parent b65af2727a
commit a2d939af62
@@ -3,7 +3,7 @@ from numpy.testing import *
from scikits.image.transform import *
def rescale(x):
x = x.astype(float, copy=True)
x = x.astype(float)
x -= x.min()
x /= x.max()
return x