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:
parent
22b0ddaa21
commit
5d09746738
@ -329,7 +329,7 @@ class ImageItem(GraphicsObject):
|
|||||||
sl = [slice(None)] * data.ndim
|
sl = [slice(None)] * data.ndim
|
||||||
sl[ax] = slice(None, None, 2)
|
sl[ax] = slice(None, None, 2)
|
||||||
data = data[sl]
|
data = data[sl]
|
||||||
return nanmin(data), nanmax(data)
|
return np.nanmin(data), np.nanmax(data)
|
||||||
|
|
||||||
def updateImage(self, *args, **kargs):
|
def updateImage(self, *args, **kargs):
|
||||||
## used for re-rendering qimage from self.image.
|
## used for re-rendering qimage from self.image.
|
||||||
|
Loading…
Reference in New Issue
Block a user