Exemple #1
0
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')
Exemple #2
0
 def load_previous(self):
     previous_file_name = FileNameIterator.get_previous_filename(self.spectrum_filename, self.file_iteration_mode)
     if previous_file_name is not None:
         self.load_spectrum(previous_file_name)