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

Errors in “import brian2” #24

Open
kiritozc opened this issue Jun 19, 2022 · 1 comment
Open

Errors in “import brian2” #24

kiritozc opened this issue Jun 19, 2022 · 1 comment

Comments

@kiritozc
Copy link

When I copied the code of exercise 1,like this,

%matplotlib inline
import brian2 as b2
import matplotlib.pyplot as plt
import numpy as np
from neurodynex3.leaky_integrate_and_fire import LIF
from neurodynex3.tools import input_factory, plot_tools

LIF.getting_started()
LIF.print_default_parameters()

python reminded me,like this,

AttributeError: module 'brian2' has no attribute 'units'

@LordJatonyas
Copy link

Based on the requirements.txt, I believe that running pip install neurodynex3 installs the latest releases of its depedencies (e.g. numpy==1.24.0). Neurodynex3 specific modules are written using previous versions of these dependencies. It'll be quite tedious trying to recover the exact versions of these dependencies, but that will be your best bet getting the exercises running!

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

2 participants