Skip to content

Commit

Permalink
Catching errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Jan 15, 2025
1 parent 147ba92 commit 2ea3957
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spikeinterface/sortingcomponents/clustering/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def split_clusters(
current_max_label = np.max(labels_set) + 1
jobs = []

if debug_folder.exists():
import shutil

shutil.rmtree(debug_folder)
if debug_folder is not None:
if debug_folder.exists():
import shutil
shutil.rmtree(debug_folder)

for label in labels_set:
peak_indices = np.flatnonzero(peak_labels == label)
Expand Down

0 comments on commit 2ea3957

Please sign in to comment.