Skip to content

Commit

Permalink
Added message about negative spike times
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobpennington committed May 9, 2024
1 parent d879c03 commit da21e78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kilosort/run_kilosort.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,14 @@ def detect_spikes(ops, device, bfile, tic0=np.nan, progress_bar=None):
print(f'{len(st)} spikes extracted in {time.time()-tic : .2f}s; ' +
f'total {time.time()-tic0 : .2f}s')

negative_spikes = (st[:,0] < 0).sum()
if negative_spikes > 0:
print(
f'{negative_spikes} spikes with negative spike times were detected.\n'
'We are aware of an issue causing this to happen for a small number '
'of spikes, and are working on a fix.'
)

return st, tF, Wall, clu


Expand Down

0 comments on commit da21e78

Please sign in to comment.