From 87956ccc2791883c98435f1a0ae3482ecce2d2d4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:47:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/widgets/unit_summary.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/spikeinterface/widgets/unit_summary.py b/src/spikeinterface/widgets/unit_summary.py index a61ebe2c86..75a399fab5 100644 --- a/src/spikeinterface/widgets/unit_summary.py +++ b/src/spikeinterface/widgets/unit_summary.py @@ -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) @@ -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, @@ -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: