spikeinterface: Index "xyz" is out of bounds for axis "xyx"
Hi,
I am getting the index error saying that “index 2054149 is out of bounds for axis 0 with size 2054146” when I try to run sw.plot_amplitudes(sa,backend='ipywidgets'). I am aware what this error means, but knowing that this is not due to any incorrect indexing logic in the source code, I am assuming that this is a rare scenario and may be issues with sorting or something else. Not sure how to resolve this. This is the first time I have gotten this error in spikeinterface and I haven’t made any changes to the order of how I process my data. Is it something with the data itself? Not sure, because my data is still 30ish minutes long recordig and that has been the same all my recordings.
Also, is it something similar to ‘more spikes than the length of the recording’ occassionally spike sorting causes? By that I mean an error originating from sorting. The workaround for that kind of error I used is:
import spikeinterface.curation as scur
sorting_wout_excess_spikes = scur.remove_excess_spikes(sorting_KS25, recording_saved)
Is there a similar workaround or a similar solution for this error? Thanks
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Does it make sense to put this as a suggestion in the assert message?
Kilosort (all flavors) is the one we typically see having excessive spikes (usually after the recording ends). so if using KS, the remove excess spikes can be beneficial.