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

error when using .merge(pairs) #3459

Open
sofiapuvogelvittini opened this issue Oct 3, 2024 · 2 comments
Open

error when using .merge(pairs) #3459

sofiapuvogelvittini opened this issue Oct 3, 2024 · 2 comments
Labels
curation Related to curation module

Comments

@sofiapuvogelvittini
Copy link

Hi, I have been using the function scur.get_potential_auto_merge() to get pairs f neurons to be merged and then I merge them with .merge(pairs). It works well most of the time, but now I am getting this error "AssertionError: new_unit_ids should have the same len as merge_unit_groups. The output of pairs is [(520, 1001, (861,872)]. I can identify this units in the sorting object. Attahced the full error in a pdf.
Do you have any thoughts on what could be going wrong this time?

Thanks a lot!
merge_error.pdf

@sofiapuvogelvittini
Copy link
Author

I solved it manually by merging each unit and assigning a new ID, like this
curation_sorting.merge([(520)],1008)
curation_sorting.merge([(861)],1009)
Could it be a bug in the merge function when handling multiple units?
Best!

@alejoe91 alejoe91 added the curation Related to curation module label Oct 3, 2024
@zm711
Copy link
Collaborator

zm711 commented Oct 3, 2024

I haven't seen the nested merge pairs before. Could you post a bit more of your script? And which version of spikeinterface you're using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
curation Related to curation module
Projects
None yet
Development

No branches or pull requests

3 participants