From 689d4c83044d3049290ef2ec2e1b6367ebbb8496 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Mon, 15 Jul 2024 14:41:20 +0200 Subject: [PATCH] Fix channel ids in sortingview --- src/spikeinterface/widgets/unit_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/widgets/unit_templates.py b/src/spikeinterface/widgets/unit_templates.py index 258ca2adaa..1d0191092f 100644 --- a/src/spikeinterface/widgets/unit_templates.py +++ b/src/spikeinterface/widgets/unit_templates.py @@ -27,7 +27,7 @@ def plot_sortingview(self, data_plot, **backend_kwargs): unit_id_to_channel_ids = dp.final_sparsity.unit_id_to_channel_ids unit_id_to_channel_indices = dp.final_sparsity.unit_id_to_channel_indices - unit_ids, channel_ids = make_serializable(dp.unit_ids, dp.channel_ids) + unit_ids, channel_ids = make_serializable(dp.unit_ids, sorting_analyzer.channel_ids) templates_dict = {} for u_i, unit in enumerate(unit_ids):