Code: Select all
dend1 : I don't have to write "access" do I ?
1. The colon : is not a comment delimiter in hoc.
2. Section stack syntax is of the form
sectionname statement
or
sectionname { statement1 statement2 . . . }
or
sectionname {
statement1
statement2
. . . }
That is, the opening curly bracket must be on the same line as the sectionname
As suggested, I could steal from the ses file
That was not my suggestion. I suggested exporting hoc code from the CellBuilder. On the Management page, click on the Export button, then click on "Export to file". The result is a very nicely structured, human readable file that looks nothing like the contents of a ses file. Everything in that hoc file is pertinent to the properties of the model cell.
Yes, a ses file does contain hoc statements, and sometimes it is useful to steal code from a ses file, but many (often most) statements in a ses file are purely administrative--they tell NEURON how to reconstruct one or more GUI tools, and have little or nothing to do with what you or I care about--the biophysical and anatomical properties of model cells.
I'm still learning and I prefer to write it from scratch.
Learning also happens "by example," especially in programming, and the CellBuilder produces some of the cleanest code you'll ever see--especially when it comes to code that specifies spatial discretization or spatial nonuniformity of parameters. Should a student of fencing or piano insist on developing technique entirely from scratch, or rely entirely on written descriptions?