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.1.tar.gz
(41.7 kB
view hashes)
Built Distribution
Close
Hashes for nmodl_preprocessor-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 913e8adfeb6fefbfa7628276471e7e82561eff2c243aca1868e2996cc86cf8e1 |
|
MD5 | 98e302a229afffdb8ab08c2e20250a36 |
|
BLAKE2b-256 | b14586275094af17ae28d01d7ab0fa7fa4eaa11b59843870df37857faaacd85b |