Merge pull request #921 from 2xB/patch-9
Prevent element-wise string comparison
This commit is contained in:
commit
6632355719
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user