Ejemplo n.º 1
0
    def __profilePrep(self, input_dir):
        Io.deleteDirectory(self.path_provider.output_tmp_path)
        Io.makeDirectories(self.path_provider.output_tmp_path)
        Io.copyFiles(src=input_dir,
                     dest=self.path_provider.output_tmp_path,
                     file_names=self.file_names,
                     file_name_regex="*.tif")

        print('Profiling')
        Io.deleteDirectory(self.path_provider.output_data_path)
        Io.makeDirectories(self.path_provider.output_data_path)
        Tr.profileToProfile(input_data=self.path_provider.output_tmp_path,
                            out_path=self.path_provider.output_data_path)

        Io.copyFiles(src=input_dir,
                     dest=self.path_provider.output_data_path,
                     file_names=self.file_names,
                     file_name_regex="*.TFW")

        # print('Translating into one file...')
        # Io.makeDirectories(self.path_provider.output_data_path)
        # Tr.translateIntoOneFile(input_data=self.path_provider.output_tmp2_path,
        #                         out_path=self.path_provider.output_data_path)

        print('Cleaning temp dirs...')
        Io.deleteDirectory(self.path_provider.output_tmp_path)