Skip to content

Commit

Permalink
Merge pull request #2210 from alejoe91/template-metrics-duplication
Browse files Browse the repository at this point in the history
Avoid duplicated template and quality metric names
  • Loading branch information
alejoe91 authored Nov 15, 2023
2 parents 0ed608f + 8a70f80 commit 6b170c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/postprocessing/template_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _set_params(
metric_names += get_multi_channel_template_metric_names()
metrics_kwargs = metrics_kwargs or dict()
params = dict(
metric_names=[str(name) for name in metric_names],
metric_names=[str(name) for name in np.unique(metric_names)],
sparsity=sparsity,
peak_sign=peak_sign,
upsampling_factor=int(upsampling_factor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _set_params(
qm_params_[k]["peak_sign"] = peak_sign

params = dict(
metric_names=[str(name) for name in metric_names],
metric_names=[str(name) for name in np.unique(metric_names)],
sparsity=sparsity,
peak_sign=peak_sign,
seed=seed,
Expand Down

0 comments on commit 6b170c5

Please sign in to comment.