예제 #1
0
파일: ImgData.py 프로젝트: kif/Py2DeX
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')
예제 #2
0
파일: ImgData.py 프로젝트: kif/Py2DeX
 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
예제 #3
0
 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)