Skip to content

Conversation

@yger
Copy link
Collaborator

@yger yger commented Jan 28, 2026

This PR adds the handling of lags in the template_similarity extension, including while selecting/merging, ...

Plus, this patches an important bug while computing similarities with lags. Currently, we were optimizing too aggressively the loop making use that CC(i,j,t) = CC(j,i,n-t) . But because we were only computing for i < j and for negative lags, the matrix was not correct...

This is not a major bug since the default lag is 0, and not many pipelines were making use of such lags, except spike sorting pipelines

@yger yger added bug Something isn't working postprocessing Related to postprocessing module labels Jan 28, 2026
@samuelgarcia
Copy link
Member

This is OK for me. But we need to handle the backward compatibility because lags are now stor in the data.

@samuelgarcia samuelgarcia merged commit 0adfa25 into SpikeInterface:main Jan 29, 2026
15 checks passed
@yger yger deleted the patch_lag_similarities branch January 29, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working postprocessing Related to postprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants