www.neuron.yale.edu

Particularly useful chunks of hoc and/or NMODL code. May be pedestrian or stunningly brilliant, may make you gasp or bring tears to your eyes, but always makes you think "I wish I had written that; I'm sure going to steal it."

I've juste started using Neuron and I'm modifiying an already existant model. I particularly struggle with a syntax erro because the error message says it is in line 1321; but this line just doesn't exist in my script. Generally, does this mean that the error isn't something the software can find?

Line numbers are not useful. The text of the error message is the clue to the location of the problem: when the interpreter encounters a syntax error, it prints the offending statement that it found in your source code, and complains about it.

That's an unusually cryptic syntax error message. I'd guess that the problem lies in NeuronSelect(), but I can't be more specific without seeing and trying your source code. If you want me to do that, zip up just enough code that I can use to reproduce the problem, and email it to
ted dot carnevale at yale dot edu

For guidelines about what to send, please see thisWhat to include in a zip file, and what to leave outviewtopic.php?f=28&t=560

The script is quite long and I don't know exactly which part of it leads to that problem.
It's probaly due to wrong setting of my formula: What I tried to do is to replace current injection to the soma by current injection to the spine head (in addition to the synaptic inputs to the head). By doing this, I just set everything that is related to the soma as comments. Thus, the problem is probably that the soma is created but no physiological neither electrical features are assigned to it.... I then have to find a way to treate the soma as an "observation compartment" rather than a stimulation one.

The problem is with the "path" argument to a file chooser. The File class's file chooser method allows specification of 6 arguments, the last of which is the path to the directory that contains the file of interest. This argument must either be an empty string "" or a valid path that ends with a slash "/", e.g. "data/" or "../../data/". Otherwise you will think you are selecting a file called "data/X.txt" but NEURON will try to load "dataX.txt" (and complain if it doesn't find it).