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