EPFL-LCN / neuronaldynamics-exercises

Python exercises accompanying the book "Neuronal Dynamics"
GNU General Public License v2.0
246 stars 124 forks source link

Errors in “import brian2” #24

Open kiritozc opened 2 years ago

kiritozc commented 2 years ago

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 commented 1 year ago

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!