Conversation
|
Thanks @HengyeZhu , we'll start looking at this. In the meantime, do you want to start an impact assessment to see how this affects other existing models? You can get the "core" osb models (models that we trust and ones we use for impact assessments) using this script: https://github.com/OpenSourceBrain/osb-model-validation/blob/master/utilities/getcoreosbprojects.sh Then, one needs to run |
|
I ran the models using the jNeuroML_NEURON engine. The results showed both improvements and setbacks. On the positive side, the tolerance could be lowered—often by one or two orders of magnitude, and in some cases dramatically, from 1e-5 to 1e-16. On the negative side, some OMV tests failed. Next, I’ll examine the models in detail and provide a summary. |
|
That sounds good. Yeh, we'd expect tolerances to drop for quite a few models, but the ones where the tests fail will need a little bit of looking into. Welcome to the editorial team, by the way. Congratulations! |
|
Thanks! I'm very honored to join the team! |
|
The modifications pertain solely to the export logic of jnmlnrn, and only the tests for jnmlnrn have been rerun accordingly. The previously mentioned test failures were due to missing environment dependencies. Regarding the jnmlnrn results, most showed improvement, while the cases marked as worse were attributable to the original mod files utilizing lookup table or Euler methods, rather than the cnexp numerical integration approach. Additionally, some mod or hoc files require downloading, which I will address later, and the source of certain mep data is unclear, making debugging difficult. Some results remained unchanged because the project does not involve hh gates. Among these, the results for CA1PyramidalCell are particularly notable: one segment was flagged as worse while all others showed improvement. The cause of this discrepancy has not yet been identified. |
Reasons for the changes
HH2_magic recomputes m_fcond/h_fcond/n_fcond in BREAKPOINT after SOLVE, so currents use gate values at the new time step.
HH2_reason computes these multipliers inside evaluate_fct before SOLVE and then reuses them in BREAKPOINT, so currents use the previous time step’s gate values.
NEURON recognizes cnexp only when the DERIVATIVE block contains the direct linear form x' = (x_inf - x)/x_tau.
Introducing intermediate rate_* variables can prevent cnexp recognition and force Euler-style updates.
Key exporter changes
Examples