Add tests for nonstandard images

This commit is contained in:
Juan Nunez-Iglesias
2015-01-14 20:29:15 +11:00
parent 176889933f
commit 9fe4f33793
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ def imshow(im, *args, **kwargs):
# display range starts at 0 for nonnegative images
lo = 0
else:
lo, hi = immin, immax
warnings.warn("Non-standard image type; displaying image with "
"stretched contrast.")
out_of_range_float = (np.issubdtype(im.dtype, np.float) and