Merge pull request #921 from 2xB/patch-9

Prevent element-wise string comparison
This commit is contained in:
Ogi Moore 2019-06-17 10:22:16 -07:00 committed by GitHub
commit 6632355719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,7 +488,7 @@ class ImageItem(GraphicsObject):
step = (step, step)
stepData = self.image[::step[0], ::step[1]]
if bins == 'auto':
if 'auto' == bins:
mn = np.nanmin(stepData)
mx = np.nanmax(stepData)
if mx == mn: