-
Notifications
You must be signed in to change notification settings - Fork 4
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
NameError: name 'file' is not defined in hbp_cells.py #2
Comments
Hi, Sadly, I do not at the moment know why this problem occurs, or how to deal with it, except switching to NEURON 7.5 |
UPDATE
Hm, I will let the script finish, and then focus on this xrange. I guess it is another leftover from python 2.7 |
OK, I would appreciate it very much if you let us know if this solves the problem. |
Hi! The script ran without errors, afaik. Of course, I replaced the There is still an warning, I don't know if it is relevant or not: This is the output of 13th cell type or so:
|
@torbjone thank you for looking into this! If the above output looks ok, imho, you can close this issue (unil NEURON 7.7 will be deployed to conda-forge and a new pull request is made here, fixing the python 2 leftovers.) Thank you again! |
Hi @cristi-zz! The output looks good. Thanks @torbjone for sorting this out |
It is possible that this problem may be related to neuronsimulator/nrn#130 |
Hi!
I cloned the library,
created neurocnn env, (using conda and environment3.yml, and I got python 3.6.6),
installed NEURON with some trouble (
neuron.__version__
is7.6.2-3-g9f36b13
)installed and compiled LFPy
ran
python hbp_cells.py compile
and it ended withSuccessfully created x86_64/special
and then, tried to run
do_all_cell_simulations
:python do_all_cell_simulations.py -probe Neuronexus-32-Kampff -n 10
I got the following errors: (13 times):
The offending code:
(1) Is file() something that had to be imported from somewhere?
I replaced it with open() [added
file=open
at the beginning of thehbp_cells.py
] assuming that the intention was to read the text contents of the .hoc files.Then, I got the following error:
The text was updated successfully, but these errors were encountered: