diff --git a/src/spikeinterface/comparison/groundtruthstudy.py b/src/spikeinterface/comparison/groundtruthstudy.py index 0133f57e4d..4f9a0b2a14 100644 --- a/src/spikeinterface/comparison/groundtruthstudy.py +++ b/src/spikeinterface/comparison/groundtruthstudy.py @@ -184,9 +184,9 @@ def run_sorters(self, case_keys=None, engine="loop", engine_kwargs={}, keep=True log_file = self.folder / "sortings" / "run_logs" / f"{self.key_to_str(key)}.json" if log_file.exists(): log_file.unlink() - + if sorter_folder_exists: - shutil.rmtree(sorter_folder) + shutil.rmtree(sorter_folder) params = self.cases[key]["run_sorter_params"].copy() # this ensure that sorter_name is given