Fix deprecation warning of multi-dimension tuples
This commit is contained in:
parent
51b3201564
commit
42fd5614d0
@ -633,7 +633,7 @@ class ImageView(QtGui.QWidget):
|
|||||||
ax = np.argmax(data.shape)
|
ax = np.argmax(data.shape)
|
||||||
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[tuple(sl)]
|
||||||
|
|
||||||
cax = self.axes['c']
|
cax = self.axes['c']
|
||||||
if cax is None:
|
if cax is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user