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 preamble code. #1426

Open
1uc opened this issue Sep 11, 2024 · 0 comments
Open

Refactor preamble code. #1426

1uc opened this issue Sep 11, 2024 · 0 comments

Comments

@1uc
Copy link
Collaborator

1uc commented Sep 11, 2024

The functions that serve as "entry points" into the MOD file, need to set up some variables that we then use, e.g.

auto _lmr = ...;
auto inst = ...;
auto node_data = ...;

This code is repetitive, but seems to be done adhoc in the NEURON code printer. It would be nice to make it systematic. We need to distinguish at least the following:

  • access to the memb_list vs. only a _prop.
  • access to a node (i.e. everything that's not an ARTIFICIAL_CELL).
  • access to thread data in two favours: a) any access at all i.e. VECTORIZED==1, b) access to the NRN thread specific copy of _thread.
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

No branches or pull requests

1 participant