mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 10:45:16 +08:00
Use general format
This commit is contained in:
@@ -161,7 +161,7 @@ def convert(image, dtype, force_copy=False, uniform=False, frange=[-1.5, 1.5]):
|
||||
|
||||
if kind_in == 'f':
|
||||
if frange and np.min(image) < frange[0] or np.max(image) > frange[1]:
|
||||
raise ValueError("Images of type float must be between %d and %d",
|
||||
raise ValueError("Images of type float must be between %g and %g",
|
||||
tuple(frange))
|
||||
if kind == 'f':
|
||||
# floating point -> floating point
|
||||
|
||||
Reference in New Issue
Block a user