Update ImageItem.py

Functions nanmin and nanmax are defined in the numpy module and cannot be accessed from the global namespace!
This commit is contained in:
miranis 2017-10-23 01:45:52 +02:00 committed by GitHub
parent 22b0ddaa21
commit 5d09746738

View File

@ -329,7 +329,7 @@ class ImageItem(GraphicsObject):
sl = [slice(None)] * data.ndim
sl[ax] = slice(None, None, 2)
data = data[sl]
return nanmin(data), nanmax(data)
return np.nanmin(data), np.nanmax(data)
def updateImage(self, *args, **kargs):
## used for re-rendering qimage from self.image.