def rename_files(self): """ calls process_next_batch so that the user can begin renaming the files in the chosen directory. ARGS: folder: string containing the absolute path of the directory to be processed """ # Create the save dir: self.current_save_folder.set(self.working_dir.get() + "/_renamed_/") try: os.mkdir(self.current_save_folder.get()) except: print("Folder Exists") self.photo_sorter = EyePhotoPatientSorter(self.working_dir.get()) self.process_next_unlabeled_batch()
def tag_follicles(self): self.photo_sorter = EyePhotoPatientSorter(self.working_dir.get(), sort=False) return