Prevent element-wise string comparison (code by @flutefreak7) (#1024)
This commit is contained in:
parent
8309b53014
commit
bfd36dc203
@ -488,7 +488,7 @@ class ImageItem(GraphicsObject):
|
|||||||
step = (step, step)
|
step = (step, step)
|
||||||
stepData = self.image[::step[0], ::step[1]]
|
stepData = self.image[::step[0], ::step[1]]
|
||||||
|
|
||||||
if 'auto' == bins:
|
if isinstance(bins, str) and bins == 'auto':
|
||||||
mn = np.nanmin(stepData)
|
mn = np.nanmin(stepData)
|
||||||
mx = np.nanmax(stepData)
|
mx = np.nanmax(stepData)
|
||||||
if mx == mn:
|
if mx == mn:
|
||||||
|
Loading…
Reference in New Issue
Block a user