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

An Option to Disable Automatic Loading of Mechanisms on Import #2760

Open
anilbey opened this issue Feb 22, 2024 · 0 comments
Open

An Option to Disable Automatic Loading of Mechanisms on Import #2760

anilbey opened this issue Feb 22, 2024 · 0 comments

Comments

@anilbey
Copy link
Contributor

anilbey commented Feb 22, 2024

Overview of the feature

When NEURON is imported via the import neuron statement, it automatically attempts to load mechanism files present in the current working directory. This behaviour does not align with scenarios where NEURON is integrated as a Python API, leading to unnecessary complexity.

Projects such as BlueNaaS, BlueCelluLab, and BluePyOpt encounter difficulties due to this automatic mechanism loading, as the assumption that mechanism files are always located in the current working directory does not hold.

One possible solution

Introduce a flag or configuration option (similar to #590) that allows users to disable the automatic loading of mechanism files upon importing NEURON. This would provide greater flexibility for developers integrating NEURON into Python-based projects and APIs, allowing them to manage mechanism file loading according to their specific requirements.

cc @pramodk @nrnhines

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