Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access recording #35

Open
khl02007 opened this issue Aug 1, 2021 · 0 comments
Open

Cannot access recording #35

khl02007 opened this issue Aug 1, 2021 · 0 comments

Comments

@khl02007
Copy link

khl02007 commented Aug 1, 2021

Hi @magland, I'd like to access a recording (PAIRED_CRCNS_HC1) via Python API but am having difficulties.

I tried:

from spikeforest2_utils import AutoRecordingExtractor, AutoSortingExtractor
import kachery as ka

ka.set_config(fr='default_readonly')
recording_path = 'sha1://067fe80650ccfc6573be1b1f7f3283a6fb6d507a/d11221_d11221.001.json'
recording = AutoRecordingExtractor(recording_path, download=True)

and got

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
/tmp/ipykernel_814256/1596312567.py in <module>
      9 # sorting_true_path = 'sha1://ff64f1713227c017052bf21b41ddf764320aa606/SYNTH_MAGLAND/synth_magland_noise10_K10_C4/001_synth.firings_true.json'
     10 
---> 11 recording = AutoRecordingExtractor(recording_path, download=True)
     12 # sorting_true = AutoSortingExtractor(sorting_true_path)
     13 

~/repos/spikeforest2/spikeforest2_utils/autoextractors/autorecordingextractor.py in __init__(self, arg, download)
     49                     obj = ka.load_object(path)
     50                     if obj is None:
---> 51                         raise Exception(f'Unable to load object: {path}')
     52                     if ('raw' in obj) and ('params' in obj) and ('geom' in obj):
     53                         self._recording = MdaRecordingExtractor(timeseries_path=obj['raw'], samplerate=obj['params']['samplerate'], geom=np.array(obj['geom']), download=download)

Exception: Unable to load object: sha1://067fe80650ccfc6573be1b1f7f3283a6fb6d507a/d11221_d11221.001.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant