spikeinterface: 'Sorting_analyzer' is not defined

Hi! I was trying to use one of the submodules in the quality metrics module - compute_synchrony_metrics but ran into sorting_analyzer not defined error. Had a chat with @alejoe91 after that where he suggested to install 0.100.0 from the main to be able to use ‘sorting_analyzer’. So I cloned from the source and ran the code below again, but the same error continues. Any suggestion how to get around this? import spikeinterface.qualitymetrics as sqm

synchrony = sqm.compute_synchrony_metrics(sorting_analyzer=sorting_analyzer, synchrony_sizes=(2, 4, 8))

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 32

Most upvoted comments

Thanks. I will add this to my first intervention above just so if someone jumps in they can quickly try this.

Issues are better if they are more specific: “Processing of waveforms slower with shorter analyzerin version x” and then adding details that template_percentile_shading=None does not work and some more context seems good to me.

I am aware that this is harder for you, writing issues is work, that’s why I am appealing to your sense of duty to the community. I also feel that our work answering your questions becomes more useful that way.

I don’t know what you mean from the terminal. That last command that you wrote within the spikeinterface folder seems correct: ```pip install . ` I just wanted to verify that you installed the latest version. You can confirm that your code is running the latest version by running:

import spikeinterface

spikeinterface.__version__

Maybe there is another problem

I have version 0.100.0

Mmm I think that you should have version 0.101.0 when pip installing from source.