Skip to content

getWaveforms Bug: Spikes near start or end of recording #21

Open
@nmtimme

Description

@nmtimme

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions