From 94abde04386441e3d2994635d4ee545a5b414175 Mon Sep 17 00:00:00 2001 From: Florent Pollet Date: Tue, 10 Sep 2024 20:27:18 -0400 Subject: [PATCH] feat: default dict comment --- src/spikeinterface/widgets/unit_summary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spikeinterface/widgets/unit_summary.py b/src/spikeinterface/widgets/unit_summary.py index fd7dafd5d6..6c39c902eb 100644 --- a/src/spikeinterface/widgets/unit_summary.py +++ b/src/spikeinterface/widgets/unit_summary.py @@ -85,6 +85,7 @@ def plot_matplotlib(self, data_plot, **backend_kwargs): unit_colors = dp.unit_colors sparsity = dp.sparsity + # defaultdict returns empty dict if key not found in subwidget_kwargs subwidget_kwargs = defaultdict(lambda: dict(), dp.subwidget_kwargs) unitlocationswidget_kwargs = subwidget_kwargs["unit_locations"] unitwaveformswidget_kwargs = subwidget_kwargs["unit_waveforms"]