neuronsimulator / nrn

NEURON Simulator
http://nrn.readthedocs.io
Other
376 stars 113 forks source link

d_lambda rule in docs doesn't match cell builder rounding #2932

Open ramcdougal opened 1 week ago

ramcdougal commented 1 week ago

The d_lambda rule ought to use a ceil function, but because that isn't available in HOC, the docs show adding 0.9 and taking the integer part... celbild.hoc however uses 0.999.

In an ideal world, both of these should be eliminated and replaced with some sort of ceil function, but at the very least, they should be consistent. (This mismatch was a source of confusion at the 2024 NEURON course.)

NEURON 9 would be a reasonable place to change this.