nmodl icon indicating copy to clipboard operation
nmodl copied to clipboard

Refactor printing setup code in entrypoints.

Open 1uc opened this issue 1 year ago • 0 comments

The entrypoints into the MOD file from NEURON typically require setting up some variable, e.g. _lmr, inst, node_data, _thread_vars, etc.

The code has roughly two favours:

  • From fully initialized NEURON, i.e. a Memb_list exists and the model is sorted. All the compute function have this type of entrypoint.

  • From a Prop. Usually this happens when we don't know that the model is sorted, or that initialization has happened. The HOC/Python bindings of FUNCTION/PROCEDUREs use this type of entrypoint.

1uc avatar Oct 07 '24 12:10 1uc