예제 #1
0
    def test_raw_is_16_bit(self):
        self.sp = splitter(self.output_folder)
        self.sp.process(self.test_data_path)

        raw_files = glob.glob(os.path.join(self.output_folder, "test", "radiometric", "*.tiff"))

        for raw_file in raw_files:
            assert(cv2.imread(raw_file, cv2.IMREAD_UNCHANGED).dtype == "uint16")
예제 #2
0
    def test_process_seq_no_split(self):
        self.sp = splitter(self.output_folder)

        self.sp.split_filetypes = False
        self.sp.process(self.test_data_path)

        assert os.path.exists(os.path.join(self.output_folder, "test", "raw")) is False
        assert os.path.exists(os.path.join(self.output_folder, "test", "preview")) is False
        assert os.path.exists(os.path.join(self.output_folder, "test", "radiometric")) is False
        
        assert len(glob.glob(os.path.join(self.output_folder, "test", "*.fff"))) > 0
        assert len(glob.glob(os.path.join(self.output_folder, "test", "*.txt"))) > 0
        assert len(glob.glob(os.path.join(self.output_folder, "test", "*.jpg"))) > 0
        assert len(glob.glob(os.path.join(self.output_folder, "test", "*.tiff"))) > 0
예제 #3
0
 def test_process_no_mmap(self):
     self.sp = splitter(self.output_folder)
     self.sp.use_mmap = False
     self.sp.process(self.test_data_path)
예제 #4
0
 def test_output_folder(self):
     self.sp = splitter(self.output_folder)
     assert os.path.exists(self.output_folder)