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.

ValueError: There is not Probe attached to recording. use set_probe(...)

See original GitHub issue

I’m transitioning to v0.90 and ran into the following issue for

recording = se.MaxwellRecordingExtractor("data.raw.h5", stream_id="well000", rec_name='rec0000')
ss.run_spykingcircus(recording=recording)
ValueError                                Traceback (most recent call last)
<ipython-input-12-b5ac23c3d039> in <module>
      1 sc_params = ss.get_default_params('spykingcircus')
      2 
----> 3 sorting_SC = ss.run_spykingcircus(recording=recording, **sc_params)

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/sorters/runsorter.py in run_spykingcircus(*args, **kwargs)
    280 
    281 def run_spykingcircus(*args, **kwargs):
--> 282     return run_sorter('spykingcircus', *args, **kwargs)
    283 run_spykingcircus.__doc__ = _common_run_doc.format('spykingcircus')
    284 

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/sorters/runsorter.py in run_sorter(sorter_name, recording, output_folder, remove_existing_folder, delete_output_folder, verbose, raise_error, docker_image, **sorter_params)
     51 
     52     if docker_image is None:
---> 53         sorting = run_sorter_local(sorter_name, recording, output_folder=output_folder,
     54             remove_existing_folder=remove_existing_folder, delete_output_folder=delete_output_folder,
     55             verbose=verbose, raise_error=raise_error, **sorter_params)

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/sorters/runsorter.py in run_sorter_local(sorter_name, recording, output_folder, remove_existing_folder, delete_output_folder, verbose, raise_error, **sorter_params)
     73     output_folder = SorterClass.initialize_folder(recording, output_folder, verbose, remove_existing_folder)
     74     SorterClass.set_params_to_folder(recording, output_folder, sorter_params, verbose)
---> 75     SorterClass.setup_recording(recording, output_folder, verbose=verbose)
     76     SorterClass.run_from_folder(output_folder, raise_error, verbose)
     77     sorting = SorterClass.get_result_from_folder(output_folder)

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/sorters/basesorter.py in setup_recording(cls, recording, output_folder, verbose)
    172             all_params =  json.load(f)
    173             sorter_params = all_params['sorter_params']
--> 174         cls._setup_recording(recording, output_folder, sorter_params, verbose)
    175 
    176     @classmethod

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/sorters/spyking_circus/spyking_circus.py in _setup_recording(cls, recording, output_folder, params, verbose)
    109         # note: only one group here, the split is done in basesorter
    110         prb_file = output_folder / 'probe.prb'
--> 111         probegroup = recording.get_probegroup()
    112         write_prb(prb_file, probegroup,
    113                         total_nb_channels=recording.get_num_channels(),

~/miniconda3/envs/mea-spike-pipe/lib/python3.8/site-packages/spikeinterface/core/baserecording.py in get_probegroup(self)
    309             positions = self.get_property('location')
    310             if positions is None:
--> 311                 raise ValueError('There is not Probe attached to recording. use set_probe(...)')
    312             else:
    313                 warn('There is no Probe attached to this recording. Creating a dummy one with contact positions')

ValueError: There is not Probe attached to recording. use set_probe(...)

Previously, the probe information was automatically extracted from the recording.

> https://github.com/SpikeInterface/spikesorters/blob/master/spikesorters/spyking_circus/spyking_circus.py

recording.save_to_probe_file(probe_file, grouping_property=None,
                                     radius=p['adjacency_radius'])

Is it possible to implement this for the new version instead of manually specifying the probe?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
samuelgarciacommented, Jun 29, 2021

This is the plan but it is better io have autotic.

1reaction
ChrisCurrincommented, Jun 30, 2021

looks good and tested successfully

On Tue, 29 Jun 2021 at 19:03, Garcia Samuel @.***> wrote:

#183 https://github.com/SpikeInterface/spikeinterface/pull/183 done here @ChrisCurrin https://github.com/ChrisCurrin can you check this with latest probeinterface also ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SpikeInterface/spikeinterface/issues/181#issuecomment-870766929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6RZ7QKFYRNXKUAJ4U5S3LTVH4H7ANCNFSM47P43IBQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

API — spikeinterface documentation - Read the Docs
This function adds an entry to the annotations dictionary. Sets a 'dummy' probe based on locations. Wrapper on top on set_probes when there...
Read more >
bCNC/ProbePage.py at master · vlachoudis/bCNC - GitHub
+ "probed data to be relative to this XY origin point)" ... probeFeed, _("Set probe feed rate")) ... if self.focus_get() is not ProbeCommonFrame.tlo:....
Read more >
ProbeInterface: A Unified Framework for Probe Handling in ...
Recording neuronal activity with penetrating extracellular multi-channel ... For this standard mapping, we can directly use a ProbeInterface pathway.
Read more >
DCS1600ART - General Tools & Instruments
Please read this manual carefully and thoroughly before using this ... Performance Recording Video Borescope System with Articulating Probe.
Read more >
In vivo Recording Quality of Mechanically Decoupled Floating ...
Floating and fixed probes are interfaced with the recording system using an Omnetics connector on the joint PCB.
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