Skip to content

Commit 6fde997

Browse files
authored
Merge pull request #3575 from yger/patch_plot_sparse_templates
Patch to allow ipywidget plot_unit_templates to work with sparse templates (instead of analyzer)
2 parents 4ed068a + 4c7b6a5 commit 6fde997

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spikeinterface/widgets/unit_waveforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def _update_plot(self, change):
565565
channel_locations = self.sorting_analyzer.get_channel_locations()
566566
else:
567567
unit_indices = [list(self.templates.unit_ids).index(unit_id) for unit_id in unit_ids]
568-
templates = self.templates.templates_array[unit_indices]
568+
templates = self.templates.get_dense_templates()[unit_indices]
569569
templates_shadings = None
570570
channel_locations = self.templates.get_channel_locations()
571571

0 commit comments

Comments
 (0)