Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor printing setup code in entrypoints. #1502

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Oct 7, 2024

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.

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.
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Oct 7, 2024
@1uc 1uc marked this pull request as ready for review October 7, 2024 13:47
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Oct 8, 2024
@1uc 1uc merged commit 0d428cf into master Oct 8, 2024
12 checks passed
@1uc 1uc deleted the 1uc/refactor-entrypoints branch October 8, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants