Optimize NMODL files for the NEURON simulator
Project description
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
-
Keep your projects in separate directories.
-
Use unique and descriptive variable names.
-
Remove unnecessary VERBATIM statements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nmodl_preprocessor-1.0.7.tar.gz
(58.6 kB
view hashes)
Built Distribution
Close
Hashes for nmodl_preprocessor-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981e95bb7e6b1100ce147afdc98e973c55816ebe9406f782a7b8fe00c7b92f49 |
|
MD5 | 49ae23416c00472aabda14dc08a73667 |
|
BLAKE2b-256 | da9aee1f124b1f16c0487ea8328f07de404d7626530285c9ce891f1359202252 |