Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for template matching in circus #2583

Merged
merged 7 commits into from Mar 29, 2024
Merged
1 change: 1 addition & 0 deletions src/spikeinterface/sortingcomponents/matching/circus.py
Expand Up @@ -130,6 +130,7 @@ def _prepare_templates(cls, d):
(d["unit_overlaps_indices"][i],) = np.nonzero(d["units_overlaps"][i])

templates_array = templates.get_dense_templates().copy()
templates_array -= templates_array.mean(axis=(1, 2))[:, None, None]

# Then we keep only the strongest components
rank = d["rank"]
Expand Down