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 Jan 17, 2025
1 parent 470f109 commit 6271e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/sortingcomponents/clustering/circus.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CircusClustering:
"min_cluster_size": 25,
"cluster_selection_epsilon": 0.25,
"cluster_selection_method": "leaf",
"allow_single_cluster": True
"allow_single_cluster": True,
},
"cleaning_kwargs": {},
"waveforms": {"ms_before": 2, "ms_after": 2},
Expand Down
3 changes: 2 additions & 1 deletion src/spikeinterface/sortingcomponents/clustering/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def split_clusters(
if debug_folder is not None:
if debug_folder.exists():
import shutil

shutil.rmtree(debug_folder)
debug_folder.mkdir(parents=True, exist_ok=True)

Expand Down Expand Up @@ -286,7 +287,7 @@ def split(
else:
raise ValueError(f"wrong clusterer {clusterer}. Possible options are 'hdbscan' or 'isocut5'.")

DEBUG = False #only for Sam or dirty hacking
DEBUG = False # only for Sam or dirty hacking

if debug_folder is not None or DEBUG:
import matplotlib.pyplot as plt
Expand Down

0 comments on commit 6271e65

Please sign in to comment.