'Set the currently displayed frame index.'

def setCurrentIndex(self, ind):

    self.currentIndex = np.clip(ind, 0, (self.getProcessedImage().shape[self.axes['t']] - 1))
    self.updateImage()
    self.ignoreTimeLine = True
    self.timeLine.setValue(self.tVals[self.currentIndex])
    self.ignoreTimeLine = False
