Skip to content

Commit

Permalink
lil bugs for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishalcrow committed Dec 4, 2024
1 parent 7585cdd commit 955ca72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/curation/model_based_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from spikeinterface.core import SortingAnalyzer
from spikeinterface.curation.train_manual_curation import try_to_get_metrics_from_analyzer, _get_computed_metrics
from copy import deepcopy


class ModelBasedClassification:
Expand Down Expand Up @@ -435,7 +436,7 @@ def handle_backwards_compatibility_metric_params(model_info):
if (tm_params := model_info["metric_params"]["template_metric_params"].get("metrics_kwargs")) is not None:
metric_params = {}
for metric_name in model_info["metric_params"]["template_metric_params"].get("metric_names"):
metric_params[metric_name] = deepcopy(metrics_kwargs)
metric_params[metric_name] = deepcopy(tm_params)
model_info["metric_params"]["template_metric_params"]["metric_params"] = metric_params
del model_info["metric_params"]["template_metric_params"]["metrics_kwargs"]

Expand Down

0 comments on commit 955ca72

Please sign in to comment.