Skip to content

Commit

Permalink
update warning to include metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishalcrow committed Sep 12, 2024
1 parent 9fb7f34 commit 406f99b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spikeinterface/postprocessing/template_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def _set_params(
# checks that existing metrics were calculated using the same params
if existing_params != metrics_kwargs_:
warnings.warn(
"The parameters used to calculate the previous template metrics are different than those used now. Deleting previous template metrics..."
f"The parameters used to calculate the previous template metrics are different"
f"than those used now.\nPrevious parameters: {existing_params}\nCurrent "
f"parameters: {metrics_kwargs_}\nDeleting previous template metrics..."
)
tm_extension.params["metric_names"] = []
existing_metric_names = []
Expand Down

0 comments on commit 406f99b

Please sign in to comment.