def test(): filename = '../ExampleData/test_999.tif' print FileNameIterator.get_next_filename(filename) filename = '../ExampleData/test_002.tif' print FileNameIterator.get_previous_filename(filename) filename = '../ExampleData/test_008.tif' print FileNameIterator.get_next_filename(filename, 'date')
def load_next(self): next_file_name = FileNameIterator.get_next_filename( self.filename, self.file_iteration_mode) if next_file_name is not None: self.load(next_file_name) return True return False
def load_next(self): next_file_name = FileNameIterator.get_next_filename(self.spectrum_filename, self.file_iteration_mode) if next_file_name is not None: self.load_spectrum(next_file_name)