Merge pull request #875 from Dschoni/develop

Fix numpy deprecation warning by typecasting multi-dimension indices to tuples.
This commit is contained in:
Ogi Moore 2019-05-23 22:02:33 -07:00 committed by GitHub
commit bc59457748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1380,7 +1380,7 @@ def gaussianFilter(data, sigma):
# clip off extra data
sl = [slice(None)] * data.ndim
sl[ax] = slice(filtered.shape[ax]-data.shape[ax],None,None)
filtered = filtered[sl]
filtered = filtered[tuple(sl)]
return filtered + baseline

View File

@ -633,7 +633,7 @@ class ImageView(QtGui.QWidget):
ax = np.argmax(data.shape)
sl = [slice(None)] * data.ndim
sl[ax] = slice(None, None, 2)
data = data[sl]
data = data[tuple(sl)]
cax = self.axes['c']
if cax is None: