Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 94175fc commit 87956cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/spikeinterface/widgets/unit_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UnitSummaryWidget(BaseWidget):
sparsity : ChannelSparsity or None, default: None
Optional ChannelSparsity to apply.
If SortingAnalyzer is already sparse, the argument is ignored
widget_params : dict or None, default: None
widget_params : dict or None, default: None
Parameters for the subwidgets in a nested dictionary
unitlocations_params: UnitLocationsWidget (see UnitLocationsWidget for details)
unitwaveforms_params: UnitWaveformsWidget (see UnitWaveformsWidget for details)
Expand All @@ -58,7 +58,7 @@ def __init__(
unit_colors = get_unit_colors(sorting_analyzer)

if widget_params is None:
widget_params = dict()
widget_params = dict()

plot_data = dict(
sorting_analyzer=sorting_analyzer,
Expand All @@ -82,11 +82,11 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):
sparsity = dp.sparsity

widget_params = defaultdict(lambda: dict(), dp.widget_params)
unitlocationswidget_params = widget_params['unitlocations_params']
unitwaveformswidget_params = widget_params['unitwaveforms_params']
unitwaveformdensitymapwidget_params = widget_params['unitwaveformdensitymap_params']
autocorrelogramswidget_params = widget_params['autocorrelograms_params']
amplitudeswidget_params = widget_params['amplitudes_params']
unitlocationswidget_params = widget_params["unitlocations_params"]
unitwaveformswidget_params = widget_params["unitwaveforms_params"]
unitwaveformdensitymapwidget_params = widget_params["unitwaveformdensitymap_params"]
autocorrelogramswidget_params = widget_params["autocorrelograms_params"]
amplitudeswidget_params = widget_params["amplitudes_params"]

# force the figure without axes
if "figsize" not in backend_kwargs:
Expand Down

0 comments on commit 87956cc

Please sign in to comment.