Open
Description
Hi,
Thanks for making this great resource!
I found a bug in the getWaveForms script. If it selects spike times near the beginning or end of the recording, it will produce an indexing error on line 54. I suggest adding:
curSpikeTimes((curSpikeTimes + gwfparams.wfWin(1)) < 1) = [];
curSpikeTimes((curSpikeTimes + gwfparams.wfWin(end)) > size(mmf.Data.x,2)) = [];
after line 49.
Thanks again for making and sharing this code!
~Nick
Metadata
Metadata
Assignees
Labels
No labels