Error using pykilosort to sort concatenated recordings
I am trying to sort some multichannel data using spikeinterface and pykilosort, and am getting an error that may be a bug. The process that caused it is the following:
- I wrote each channel of the probe to a binary file, and loaded each of those files using
read_binary. I get aBinaryRecordingExtractorwith 16 channels and 16 corresponding segments. - I give that
BinaryRecordingExtractortoconcatenate_recordingsand get aConcatenateSegmentRecordingobject. - I use
set_probeto set the probe on that object. - I then pass that to
run_sorter('pykilosort').
A very similar process to that found in the docs here.
The sorting fails, apparently on the line assert isinstance(recording, BinaryRecordingExtractor)
Should I be doing something to convert back to a BinaryRecordingExtractor before running the sorting? Or, is there something I can do in step one to get a BinaryRecordingExtractor with 16 channels but only one segment?
Hi!
This is fixed in master, can you try to install from source?
Cheers Alessio
Thanks a lot for the quick fix, we'll give it a shot within a week or two