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":