Skip to content

Commit

Permalink
Merge pull request #2632 from chrishalcrow/fix_isi_numba
Browse files Browse the repository at this point in the history
Fix isi_histograms when using numba
  • Loading branch information
alejoe91 authored Mar 27, 2024
2 parents 2983463 + f6d2101 commit 56a0eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/postprocessing/isi.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def compute_isi_histograms_numba(sorting, window_ms: float = 50.0, bin_ms: float
bin_size = int(round(fs * bin_ms * 1e-3))
window_size -= window_size % bin_size

bins = np.arange(0, window_size + bin_size, bin_size) # * 1e3 / fs
bins = np.arange(0, window_size + bin_size, bin_size, dtype=np.int64)
spikes = sorting.to_spike_vector(concatenated=False)

ISIs = np.zeros((num_units, len(bins) - 1), dtype=np.int64)
Expand Down

0 comments on commit 56a0eea

Please sign in to comment.