Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Oct 17, 2023
2 parents 44ad0ef + 4c76371 commit 82ee456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/sortingcomponents/clustering/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def split_clusters(

job_kwargs = fix_job_kwargs(job_kwargs)
n_jobs = job_kwargs["n_jobs"]
mp_context = job_kwargs["mp_context"]
mp_context = job_kwargs.get("mp_context", None)
progress_bar = job_kwargs["progress_bar"]
max_threads_per_process = job_kwargs["max_threads_per_process"]

Expand All @@ -72,7 +72,7 @@ def split_clusters(
with Executor(
max_workers=n_jobs,
initializer=split_worker_init,
mp_context=get_context(mp_context),
mp_context=get_context(method=mp_context),
initargs=(recording, features_dict_or_folder, original_labels, method, method_kwargs, max_threads_per_process),
) as pool:
labels_set = np.setdiff1d(peak_labels, [-1])
Expand Down

0 comments on commit 82ee456

Please sign in to comment.