Merge pull request #616 from gram526/patch-1

Play image along 't' axis instead of first axis
This commit is contained in:
Luke Campagnola 2018-01-29 18:59:54 -08:00 committed by GitHub
commit 8ea3add281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ class ImageView(QtGui.QWidget):
n = int(self.playRate * dt)
if n != 0:
self.lastPlayTime += (float(n)/self.playRate)
if self.currentIndex+n > self.image.shape[0]:
if self.currentIndex+n > self.image.shape[self.axes['t']]:
self.play(0)
self.jumpFrames(n)