mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 12:20:31 +08:00
BUG: Remove numpy 2 usage of .astype.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user