def previous(self): """ returns the previous file in the series as a fabioimage """ if self.nframes == 1: return fabioimage.previous(self) else: newFrameId = self.currentframe - 1 return self.getframe(newFrameId)
def previous(self): """ returns the previous file in the series as a fabioimage """ newImage = None if self.nframes == 1: newImage = fabioimage.previous(self) else: newFrameId = self.currentframe - 1 newImage = self.getframe(newFrameId) return newImage