AllenInstitute / AllenSDK

code for reading and processing Allen Institute for Brain Science data
https://allensdk.readthedocs.io/en/latest/
Other
344 stars 149 forks source link

Can't download experiment files from Neuropixels Brain Observatory #2653

Closed mariakesa closed 1 year ago

mariakesa commented 1 year ago

Hello:-)

I tried to follow this tutorial, but I got a strange error https://allensdk.readthedocs.io/en/latest/_static/examples/nb/ecephys_receptive_fields.html

Here's the notebook with the error https://github.com/mariakesa/CommunicationSubspaces/blob/master/Movies.ipynb

Thank you for your work!

Maria

morriscb commented 1 year ago

Hey Maria, looking at your code, you aren't loading the sessions table through the cache. Please use cache.get_session_table() instead of loading the CSV file directly. The reason your code is failing is that you are trying to load a session with an id of 20 instead of one of the ids in the table you loaded. Using the API on the cache should index the session table correctly.

mariakesa commented 1 year ago

Thank you so much:-) It's working!