Don't create superfluous ip variable

This commit is contained in:
Juan Nunez-Iglesias
2015-01-15 23:31:51 +11:00
parent 5d115209b5
commit 61d9812cd8
+2 -3
View File
@@ -52,9 +52,8 @@ def _get_image_properties(image):
(float(immax - immin) / (hi - lo)) < (1. / 255))
unsupported_dtype = image.dtype not in dtypes._supported_types
ip = ImageProperties(signed, out_of_range_float,
low_dynamic_range, unsupported_dtype)
return ip
return ImageProperties(signed, out_of_range_float,
low_dynamic_range, unsupported_dtype)
def _raise_warnings(image_properties):