Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2024
1 parent 32c74d4 commit c35a706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/benchmark/benchmark_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def run(self, case_keys=None, keep=True, verbose=False, **job_kwargs):

result_folder = self.folder / "results" / self.key_to_str(key)
sorter_folder = self.folder / "sorters" / self.key_to_str(key)

if keep and result_folder.exists():
continue
elif not keep and (result_folder.exists() or sorter_folder.exists()):
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/benchmark/benchmark_sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def remove_benchmark(self, key):

sorter_folder = self.folder / "sorters" / self.key_to_str(key)
import shutil

if sorter_folder.exists():
shutil.rmtree(sorter_folder)


def get_performance_by_unit(self, case_keys=None):
import pandas as pd
Expand Down

0 comments on commit c35a706

Please sign in to comment.