question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spyking_circus error .

See original GitHub issue

I’m not sure if this error is totally related to the sorter (spyking_circus), or spike_interface. In any case, I encountered this frequently. Sometimes this error would be resolved if I change (increase) the ‘detect_threshold’ from the sorter parameters.

But such tricks did not work in this case. Reason : unlike my previous successful trials which were on relatively short duration recordings (about 3 minutes), this file (which constitues my main data) consists of 30 minutes of recording. Hence I suspect this may be due to the high volume of input data, perhaps making some memory problem ?

ss.run_sorter( sorter_name='spykingcircus' , recording=rd_l_pps , detect_sign=0 , detect_threshold=8 , template_width_ms=2 , filter=False , auto_merge=0.6 , verbose=True , output_folder=r'/home/azare/groups/PrimNeu/Aryo/analysis/sort/srt_l_2')

I had activated the verbose=True while sorting : the following is the error from spyking circus itself :

Smart Search of good isolated spikes for the clustering (1/3)...


  0%|                                            |[00:00<?, ?it/s]

===================================================================================

=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES

=   PID 26456 RUNNING AT nib03.int.lin-magdeburg.de

=   EXIT CODE: 9

=   CLEANING UP REMAINING PROCESSES

=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

===================================================================================

YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Killed (signal 9)

This typically refers to a problem with your application.

Please see the FAQ page for debugging suggestions


----------------------------  Error  -----------------------------

| Step "clustering" failed for reason Command '['mpiexec', '-np', '72', 'spyking-circus-subtask', 'clustering', '/home/azare/groups/PrimNeu/Aryo/analysis/sort/srt_l_2/recording.npy', '72', '0', 'False', 'False']' returned non-zero exit status 9.!

------------------------------------------------------------------

spykingcircus run time 3847.61s

Note: the initial steps of the sorting runs without any error. I did not copy all of the report (before the error) for the sake of conciseness.

And the subsequent error from python :

Traceback (most recent call last):

  File "/tmp/ipykernel_9621/1917434363.py", line 1, in <module>
    ss.run_sorter( sorter_name='spykingcircus' , recording=rd_l_pps , detect_sign=0 , detect_threshold=8 , template_width_ms=2 ,  filter=False , auto_merge=0.6 , verbose=True , output_folder=r'/home/azare/groups/PrimNeu/Aryo/analysis/sort/srt_l_2')

  File "/home/azare/anaconda3/envs/env_11/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py", line 142, in run_sorter
    return run_sorter_local(**common_kwargs)

  File "/home/azare/anaconda3/envs/env_11/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py", line 164, in run_sorter_local
    sorting = SorterClass.get_result_from_folder(output_folder)

  File "/home/azare/anaconda3/envs/env_11/lib/python3.9/site-packages/spikeinterface/sorters/basesorter.py", line 281, in get_result_from_folder
    sorting = cls._get_result_from_folder(output_folder)

  File "/home/azare/anaconda3/envs/env_11/lib/python3.9/site-packages/spikeinterface/sorters/spyking_circus/spyking_circus.py", line 169, in _get_result_from_folder
    sorting = SpykingCircusSortingExtractor(folder_path=Path(output_folder) / 'recording')

  File "/home/azare/anaconda3/envs/env_11/lib/python3.9/site-packages/spikeinterface/extractors/spykingcircusextractors.py", line 67, in __init__
    raise Exception(spykingcircus_folder, " is not a spyking circus folder")

Exception: (PosixPath('/home/azare/groups/PrimNeu/Aryo/analysis/sort/srt_l_2/recording'), ' is not a spyking circus folder')

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Aryo-Zarecommented, Oct 27, 2022

I just found a similar issue posted on the spyking-cirus page :

https://github.com/spyking-circus/spyking-circus/issues/377

The error reported by the sorter is similar. But seemingly the sorting process had already advanced further than in my case. Even though the user was implementing it via docker. The user was also using spike-interface.

Unfortunately that issue is still open.

0reactions
Aryo-Zarecommented, Nov 15, 2022

I found the solution to this : explained at #895.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error during clustering. · Issue #81 · spyking-circus ... - GitHub
Hi, I've ran into this error with two different data types (nwb,npy): ... Here comes the SpyKING CIRCUS using 1 CPUs and 0...
Read more >
Frequently Asked Questions - SpyKING CIRCUS
Frequently Asked Questions¶. Here are some questions that are popping up regularly. You can ask some or get answers on our Google Group ......
Read more >
installation problems? - Google Groups
I'm trying to run spyking circus on Ubuntu 14.04 using anaconda. I am getting an error that I think is related to me...
Read more >
spyking-circus - PyPI
A fast and scalable solution for spike sorting of large-scale extracellular recordings. SpyKING CIRCUS is a python code to allow fast spike sorting...
Read more >
How to use the circus.shared.probes.get_nodes_and_edges ...
To help you get started, we've selected a few circus examples, ... spyking-circus / spyking-circus / circus / whitening.py View on Github external....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found