Use general format

This commit is contained in:
cgohlke
2012-05-23 12:09:41 -07:00
parent 15c0df33c9
commit 225cfca4e2
+1 -1
View File
@@ -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