Bump numpy requirement to 1.7.2

This commit is contained in:
Stefan van der Walt
2016-01-28 11:24:29 -08:00
parent 772dc48337
commit 31b6adb778
3 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -25,9 +25,8 @@ _supported_types = (np.bool_, np.bool8,
np.int8, np.int16, np.int32, np.int64,
np.float32, np.float64)
if np.__version__ >= "1.6.0":
dtype_range[np.float16] = (-1, 1)
_supported_types += (np.float16, )
dtype_range[np.float16] = (-1, 1)
_supported_types += (np.float16, )
def dtype_limits(image, clip_negative=True):