spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

Error using pykilosort to sort concatenated recordings

Open kortdriessen opened this issue 2 years ago • 2 comments

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:

  1. I wrote each channel of the probe to a binary file, and loaded each of those files using read_binary. I get a BinaryRecordingExtractor with 16 channels and 16 corresponding segments.
  2. I give that BinaryRecordingExtractor to concatenate_recordings and get a ConcatenateSegmentRecording object.
  3. I use set_probe to set the probe on that object.
  4. 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?

kortdriessen avatar Aug 10 '22 15:08 kortdriessen

Hi!

This is fixed in master, can you try to install from source?

Cheers Alessio

alejoe91 avatar Aug 11 '22 15:08 alejoe91

Thanks a lot for the quick fix, we'll give it a shot within a week or two

TomBugnon avatar Aug 11 '22 15:08 TomBugnon