mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 22:34:17 +08:00
Don't create superfluous ip variable
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user