Skip to content

Commit

Permalink
feat: default dict comment
Browse files Browse the repository at this point in the history
  • Loading branch information
florian6973 committed Sep 11, 2024
1 parent 15c51f9 commit 94abde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spikeinterface/widgets/unit_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 94abde0

Please sign in to comment.