nmodl_preprocessor
This program optimizes NMODL files for the NEURON simulator.
It scans all of your project's files to perform aggressive whole program optimization.
It performs the following optimizations to ".mod" files:
- Hardcode the parameters
- Hardcode the temperature
- Hardcode any assigned variables with constant values
- Inline all functions and procedures
- Convert assigned variables into local variables
These optimizations can improve run-time performance and memory usage by between 5% and 15%.
Installation
Prerequisites
pip install nmodl_preprocessor
Usage
$ nmodl_preprocessor [-h] project_dir [model_dir ...]
positional arguments:
project_dir root directory of all simulation files
model_dir input directory of nmodl files
options:
-h, --help show this help message and exit
Tips
-
Always check your results for accuracy and correctness.
-
Do not use this tool with neuron's graphical user interface "nrngui".
-
Keep your projects in separate directories.
-
Use unique and descriptive variable names.
-
Remove unnecessary VERBATIM statements.
Metadata
Release files for nmodl-preprocessor 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nmodl_preprocessor-1.0.8.tar.gz | 58.7 kB | Without provenance | Details for nmodl_preprocessor-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nmodl_preprocessor-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for nmodl_preprocessor-1.0.8-py3-none-any.whl |
Total release size: 75.8 kB
Release files / nmodl_preprocessor-1.0.8.tar.gz
| Download URL | nmodl_preprocessor-1.0.8.tar.gz |
|---|---|
| Size | 58.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b23d1f27c68ee0eab198e9128ec12044eb73f1062389f3ecbf989ce2c93311ac
|
|
BLAKE2b-256 checksum How to use checksums |
4b9008bc7c2b6364f1ac210d65df787a0c1999d7cae183ed16eec3bd0ccdfebc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / nmodl_preprocessor-1.0.8-py3-none-any.whl
| Download URL | nmodl_preprocessor-1.0.8-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e60920179752a0aea91427402159e6cf8bd0c8b35f756950b6ce7116dfa00105
|
|
BLAKE2b-256 checksum How to use checksums |
50aa7b96f4535a736e1230f19f68380aa4433e54cf7ca36ad3ceec357637570d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for nmodl-preprocessor 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.