Skip to content

Commit

Permalink
Merge pull request #2110 from alejoe91/fix-ci
Browse files Browse the repository at this point in the history
Fix full tests on codecov
  • Loading branch information
samuelgarcia authored Oct 17, 2023
2 parents f55dfcc + fb5b1ef commit 99f31e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/sortingcomponents/clustering/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ def find_merge_pairs(
indices0, indices1 = np.nonzero(pair_mask)

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

Executor = get_poolexecutor(n_jobs)
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/sortingcomponents/clustering/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def split_clusters(
n_jobs = job_kwargs["n_jobs"]
mp_context = job_kwargs.get("mp_context", None)
progress_bar = job_kwargs["progress_bar"]
max_threads_per_process = job_kwargs["max_threads_per_process"]
max_threads_per_process = job_kwargs.get("max_threads_per_process", 1)

original_labels = peak_labels
peak_labels = peak_labels.copy()
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/widgets/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def plot_sortingview(self, data_plot, **backend_kwargs):

metrics_sv = []
for col in metric_names:
dtype = metrics.iloc[0][col].dtype
dtype = np.array(metrics.iloc[0][col]).dtype
metric = vv.UnitMetricsGraphMetric(key=col, label=col, dtype=dtype.str)
metrics_sv.append(metric)

Expand Down
4 changes: 2 additions & 2 deletions src/spikeinterface/widgets/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ def test_plot_rasters(self):
# mytest.test_plot_unit_summary()
# mytest.test_unit_locations()
# mytest.test_quality_metrics()
# mytest.test_template_metrics()
mytest.test_template_metrics()
# mytest.test_amplitudes()
mytest.test_plot_agreement_matrix()
# mytest.test_plot_agreement_matrix()
# mytest.test_plot_confusion_matrix()
# mytest.test_plot_probe_map()
# mytest.test_plot_rasters()
Expand Down

0 comments on commit 99f31e5

Please sign in to comment.