From 4a778069329529afa7eccc01d7805642d9ff93e5 Mon Sep 17 00:00:00 2001 From: Samuel Garcia Date: Fri, 6 Oct 2023 13:46:35 +0200 Subject: [PATCH 1/3] small fix in gtstudy --- src/spikeinterface/comparison/groundtruthstudy.py | 3 +++ src/spikeinterface/widgets/widget_list.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spikeinterface/comparison/groundtruthstudy.py b/src/spikeinterface/comparison/groundtruthstudy.py index df0b5296c0..a1814d3527 100644 --- a/src/spikeinterface/comparison/groundtruthstudy.py +++ b/src/spikeinterface/comparison/groundtruthstudy.py @@ -184,6 +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) params = self.cases[key]["run_sorter_params"].copy() # this ensure that sorter_name is given diff --git a/src/spikeinterface/widgets/widget_list.py b/src/spikeinterface/widgets/widget_list.py index ed77de6128..51e7208080 100644 --- a/src/spikeinterface/widgets/widget_list.py +++ b/src/spikeinterface/widgets/widget_list.py @@ -114,7 +114,7 @@ plot_study_run_times = StudyRunTimesWidget plot_study_unit_counts = StudyUnitCountsWidget plot_study_performances = StudyPerformances -plot_stufy_performances_vs_metrics = StudyPerformancesVsMetrics +plot_study_performances_vs_metrics = StudyPerformancesVsMetrics def plot_timeseries(*args, **kwargs): From 59e617fdfca4898b131c4cbf84b1a2e4eccd1eb0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:47:21 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/comparison/groundtruthstudy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/comparison/groundtruthstudy.py b/src/spikeinterface/comparison/groundtruthstudy.py index a1814d3527..8d8b255336 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 From 8c64a9f74b035211b4f4623becbdfd010683d402 Mon Sep 17 00:00:00 2001 From: Samuel Garcia Date: Fri, 6 Oct 2023 14:19:38 +0200 Subject: [PATCH 3/3] oups --- src/spikeinterface/comparison/groundtruthstudy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/comparison/groundtruthstudy.py b/src/spikeinterface/comparison/groundtruthstudy.py index a1814d3527..0133f57e4d 100644 --- a/src/spikeinterface/comparison/groundtruthstudy.py +++ b/src/spikeinterface/comparison/groundtruthstudy.py @@ -165,7 +165,7 @@ def run_sorters(self, case_keys=None, engine="loop", engine_kwargs={}, keep=True sorting_exists = sorting_folder.exists() sorter_folder = self.folder / "sorters" / self.key_to_str(key) - sorter_folder_exists = sorting_folder.exists() + sorter_folder_exists = sorter_folder.exists() if keep: if sorting_exists: