spikeinterface icon indicating copy to clipboard operation
spikeinterface copied to clipboard

stream_names not found during sorting

Open shunnnli opened this issue 2 years ago • 5 comments

Hi,

I'm running NP2 recording using spikeinterface. I've been following the neuropixel notebook provided in the documentation and everything runs smoothly until spike sorting, where theres an error saying that it can't find imec0.ap as stream_names is empty. However, when I explicitly called stream_names, it outputs correctly.

Thanks in advance for the help! image

shunnnli avatar May 18 '23 21:05 shunnnli

Hi. Sometimes reading a particular inside the docker have issue. We need to fix that. An easy fix is to save the recording to binary outside the docker itself because kilosort3 will need a binary anyway. Try something like this.

rec_binary = rec.save(folder='/a/tmp/folder', n_jobs=-1, progress_bar=True, chunk_duration='1s')
sorting = run_sorter('kilosort3', rec_binary, ...)

samuelgarcia avatar May 22 '23 06:05 samuelgarcia

Thanks @samuelgarcia

I agree we need to debug this internally and maybe even running tests about reading an extractor in a docker image after mapping the paths!

alejoe91 avatar May 22 '23 06:05 alejoe91

@alejoe91 : what we should do is to call the setup_recording outside the docker and run_from_folder inside the docker. It was my plan long time ago but never find time to do this quite big refactoring.

samuelgarcia avatar May 22 '23 06:05 samuelgarcia

Hi guys,

It seems I am also now getting this error after updating to the latest version of spikeinterface when trying to sort a concatenated recording (in docker). The binary is written to disk beforehand. Is it possible that this got broken again? Thanks for your help. Cheers

LaurenzMuessig avatar May 22 '23 08:05 LaurenzMuessig

Has anyone seen this issue continue or can this be closed with the current state of main?

zm711 avatar Apr 30 '24 12:04 zm711

I'll close this for lack of response, but feel free to reopen if this comes up again.

zm711 avatar Jun 19 '24 16:06 zm711