Page 1 of 1

loading a model into neutron

Posted: Wed Mar 20, 2024 11:12 pm
by Chloe
I have downloaded Neuron onto my Mac using XQuartz which works fine. I am trying to load the mosinit hoc file from this model: https://modeldb.science/3673

however every time I do it says this in the terminal:


/Applications/NEURON//bin/nrniv: spike is not a MECHANISM
in current.hoc near line 18
insert spike
^
xopen("current.hoc")
execute1("{xopen("cu...")
load_file("current.hoc")
xopen("mosinit.hoc")
and others
0
/Applications/NEURON//bin/nrniv: Object ID doesn't exist: Family[0]

in current.hoc near line 14
execute("frun()", Family[0])
^
xopen("mosinit.hoc")
NEURONMainMenu[0].execute1("{xopen("mo...")
NEURONMainMenu[0].load_file(0, "/Users/chl...")
NEURONMainMenu[0].load("*.hoc", 0)



Just wondering how to fix this issue?
Thank you

Re: loading a model into neutron

Posted: Thu Mar 21, 2024 11:46 am
by ted
An error message of the form

foo is not a MECHANISM

generally means that you need to compile the mod file that defines foo. Time to read mod files: what they are, and how to use them in the Hot tips area of the NEURON Forum (viewtopic.php?t=3263)