mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Don't create superfluous ip variable
This commit is contained in:
1 parent
5d115209b5
commit
61d9812cd8
1 file changed
+2
-3
@@ -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