Page 1 of 1

colon : in a mod file

Posted: Tue Dec 29, 2015 4:47 am
by maria.kesa
What does the following notation mean in NEURON?

Code: Select all

lambda1 = 80 : 60 : 12 :80: 20 : 15 :8 :5: 2.5
Thanks,
Maria

Re: colon : in a mod file

Posted: Tue Dec 29, 2015 12:20 pm
by ted
maria.kesa wrote:What does the following notation mean in NEURON?
You're asking about one of the mod files in ModelDB entry 150288, and you meant to ask "what does a colon mean in the NMODL programming language." It's NMODL's single-line comment delimiter. In this statement
lambda1 = 80 : 60 : 12 :80: 20 : 15 :8 :5: 2.5
everything to the right of the first colon is a comment. I'd guess that the model authors tried several different values for this parameter, and left a trail of those values in the comment.

NMODL is discussed in considerable detail in chapter 9 of The NEURON Book.

Re: colon : in a mod file

Posted: Wed Dec 30, 2015 1:20 pm
by maria.kesa
Thank you so much, Ted. I'm reading the book, but it's taking some time.