BarbourLab / lussac

Package for automatic post-processing and merging of multiple spike-sorting analyses.
GNU Affero General Public License v3.0
25 stars 3 forks source link

The sorting object has spikes exceeding the recording duration #4

Closed llobetv closed 1 year ago

llobetv commented 1 year ago

I suspect that is cause by realignment or spike close to end/begining where lussac try to extract after the end or before the begining?

One line could be add to remove those spikes from sorting object? (or if it's to calculate mean wf exclude them for this step?


** merge_units ***


Running category 'CS':

DradeAW commented 1 year ago

I added a patch in the align_units module to take care of the spikes going over the edge of the recording. I also added the corresponding unit tests.

Can you pull the latest commit from the dev branch and confirm whether it solves your issue? You will have to remove the logs for align_units and all modules after it.

Thanks for the report!

llobetv commented 1 year ago

Fix works thanks !