From a6bd539c8caa06ee38ef5c94df52e6ac2d4a53cb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 08:28:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/core/basesorting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spikeinterface/core/basesorting.py b/src/spikeinterface/core/basesorting.py index 95e2aa93d4..e33f85e7e5 100644 --- a/src/spikeinterface/core/basesorting.py +++ b/src/spikeinterface/core/basesorting.py @@ -288,7 +288,7 @@ def count_num_spikes_per_unit(self, outputs="dict"): # speed strategy by order # 1. if _cached_spike_trains have all units then use it - # 2. if _cached_spike_vector is not non use it + # 2. if _cached_spike_vector is not non use it # 3. loop with get_unit_spike_train # check if all spiketrains are cached @@ -313,7 +313,6 @@ def count_num_spikes_per_unit(self, outputs="dict"): unit_indices, counts = np.unique(spike_vector["unit_index"], return_counts=True) num_spikes[unit_indices] = counts - if outputs == "array": return num_spikes elif outputs == "dict":