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 Nov 22, 2023
1 parent b09ee96 commit a6bd539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spikeinterface/core/basesorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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":
Expand Down

0 comments on commit a6bd539

Please sign in to comment.