Optimize NMODL files for the NEURON simulator
Project description
nmodl_preprocessor
This program performs the following optimizations to ".mod" files:
- Inline parameters
- Inline temperature
- Inline functions and procedures
- Inline assigned variables with constant values
- Convert assigned variables into local variables
These optimizations can improve runtime performance by as much as 15%.
Installation
Prerequisites
pip install nmodl_preprocessor
Usage
$ nmodl_preprocessor [-h] [--celsius CELSIUS] input_path output_path
positional arguments:
input_path input filename or directory of nmodl files
output_path output filename or directory for nmodl files
options:
-h, --help show this help message and exit
--celsius CELSIUS temperature of the simulation
Tips
-
Remove variables from RANGE and GLOBAL statements unless you actually need to inspect or modify their value.
-
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.0.tar.gz
(41.6 kB
view hashes)
Built Distribution
Close
Hashes for nmodl_preprocessor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428572a45383ff6c594ec2596bdb10ed124d13c6aa31e2ce721eac6e223ef9e9 |
|
MD5 | 3f871b19b935a7fec700cb3e41640d3d |
|
BLAKE2b-256 | 3e4d258120fddb7abd8340d84972a537f95793ad4232e44ca6e9eabb5b54b435 |