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

Document behavior of implicit loading of mechanisms #3318

Open
JCGoran opened this issue Jan 23, 2025 · 0 comments
Open

Document behavior of implicit loading of mechanisms #3318

JCGoran opened this issue Jan 23, 2025 · 0 comments

Comments

@JCGoran
Copy link
Collaborator

JCGoran commented Jan 23, 2025

When running import neuron from Python, or nrniv directly, NEURON implicitly loads any additional mechanisms from the ${ARCH} subdirectory of the current working directory. At least in the case of Python, this can be traced to the load_mechanisms function:

def load_mechanisms(path, warn_if_already_loaded=True):

We should clarify how this works in the online documentation, notably:

  • the default case when there is an ${ARCH} subdir in the current working dir
  • the case when NRN_NMODL_PATH env variable is set
  • any other case of interest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant