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

SpikingCircus2 throwing error with multi-segment recordings #2206

Closed
FrancescoNegri opened this issue Nov 15, 2023 · 5 comments
Closed

SpikingCircus2 throwing error with multi-segment recordings #2206

FrancescoNegri opened this issue Nov 15, 2023 · 5 comments
Assignees
Labels
bug in sorter The bug is in sorter code itself, not in SI

Comments

@FrancescoNegri
Copy link

Hi!
I was trying to run SpykingCircus2 with a multi-segment recording (3 segments for a total of ~18 mins) since, according to my understanding of the documentation, only SpykingCircus2 and Tridesclous support multi-segment data.

However, the run_sorter(...) function throws this error:

{
	"name": "ValueError",
	"message": "This sorter spykingcircus2 does not handle multi-segment recordings, use si.concatenate_recordings(...)",
	"stack":  ...
}

Is such a behaviour expected?
Thank you in advance :)

@alejoe91 alejoe91 added the bug in sorter The bug is in sorter code itself, not in SI label Nov 15, 2023
@yger
Copy link
Collaborator

yger commented Nov 15, 2023

SC2 should work with multi segment, I'll investigate since I don't know where and why this message is raised...

@samuelgarcia
Copy link
Member

Oups. This is a bug. I guess a bad assert somewhere. Pierre you fix this ?

@alejoe91
Copy link
Member

Problem is here: https://github.com/SpikeInterface/spikeinterface/blob/main/src/spikeinterface/sorters/basesorter.py#L50

You need to set it to True in the SC2 class

@alejoe91
Copy link
Member

Note that also TDC2 is missing it!

@yger
Copy link
Collaborator

yger commented Nov 16, 2023

This has been fixed in #2208

@yger yger closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in sorter The bug is in sorter code itself, not in SI
Projects
None yet
Development

No branches or pull requests

4 participants