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 6, 2023
1 parent 5b845d8 commit 93aa65d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spikeinterface/core/basesorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ def precompute_spike_trains(self, from_spike_vector: bool = True):
unit_ids = self.unit_ids

if from_spike_vector:
assert HAVE_NUMBA, "`numba` must be installed to use `precompute_spike_trains(from_spike_vector=True)`\
assert (
HAVE_NUMBA
), "`numba` must be installed to use `precompute_spike_trains(from_spike_vector=True)`\
Either install numba (pip install numba) or set `from_spike_vector=False`"

spike_trains = spike_vector_to_dict(self.to_spike_vector())
Expand Down

0 comments on commit 93aa65d

Please sign in to comment.