Merge pull request #875 from Dschoni/develop
Fix numpy deprecation warning by typecasting multi-dimension indices to tuples.
This commit is contained in:
commit
bc59457748
@ -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
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user