The function load_mechs_from_folder() in brainsignals/neural_simulations.py has not been tested on Windows (according to a to-do comment). I tested it and ran into a couple simple problems.
To Reproduce
On Windows 11, with all requirements installed, run the first cell of Figure-7.11.ipynb
Errors
-
In load_mechs_from_folder, warn is not imported. I resolved this by importing warn and reinstalling brainsignals
-
In load_mechs_from_folder, mod_pth is not defined. In other functions, there are different definitions, so I'm not sure which one to use. I possibly solved this by mod_pth = join(hay_folder, "mod/")
As the warning suggests, I ran mknrndll from NEURON bash in the folder L5bPCmodelsEH
-
Next error occured at cell = return_hay_cell(tstop=tstop, dt=dt, make_passive=False)
"ValueError: setting an array element with a sequence."
Copilot suggests that LFPy isn't yet compatible with python 3.14, so I should python 3.11.
Setup
- OS: Windows 11
- Python 3.14
- Neuron 9.0
The function
load_mechs_from_folder()inbrainsignals/neural_simulations.pyhas not been tested on Windows (according to a to-do comment). I tested it and ran into a couple simple problems.To Reproduce
On Windows 11, with all requirements installed, run the first cell of
Figure-7.11.ipynbErrors
In
load_mechs_from_folder,warnis not imported. I resolved this by importing warn and reinstallingbrainsignalsIn
load_mechs_from_folder,mod_pthis not defined. In other functions, there are different definitions, so I'm not sure which one to use. I possibly solved this bymod_pth = join(hay_folder, "mod/")As the warning suggests, I ran
mknrndllfrom NEURON bash in the folderL5bPCmodelsEHNext error occured at
cell = return_hay_cell(tstop=tstop, dt=dt, make_passive=False)"ValueError: setting an array element with a sequence."
Copilot suggests that LFPy isn't yet compatible with python 3.14, so I should python 3.11.
Setup