NeuromatchAcademy / course-content

NMA Computational Neuroscience course

Home Page:https://compneuro.neuromatch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

projects/neurons/load_Allen_Visual_Behavior_from_SDK.ipynb is not working

spirosChv opened this issue · comments

This notebook is dependent on the deprecated python module mindscope_utilities and is not working anymore. See more info: https://github.com/AllenInstitute/mindscope_utilities

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-6-8b843734a447>](https://localhost:8080/#) in <cell line: 14>()
     12 
     13 import mindscope_utilities
---> 14 import mindscope_utilities.visual_behavior_ophys as ophys
     15 
     16 from allensdk.brain_observatory.behavior.behavior_project_cache import VisualBehaviorOphysProjectCache

1 frames
[/usr/local/lib/python3.10/dist-packages/mindscope_utilities/visual_behavior_ophys/data_formatting.py](https://localhost:8080/#) in <module>
      4 from tqdm import tqdm
      5 import mindscope_utilities
----> 6 from allensdk.brain_observatory.behavior.trials_processing import calculate_reward_rate
      7 
      8 

ImportError: cannot import name 'calculate_reward_rate' from 'allensdk.brain_observatory.behavior.trials_processing' (/usr/local/lib/python3.10/dist-packages/allensdk/brain_observatory/behavior/trials_processing.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Resolved by #1041