nmodl_preprocessor
This program optimizes NMODL files for the NEURON simulator.
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 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
-
This program will not optimize any RANGE or GLOBAL symbols.
- Remove them unless you actually need to inspect or modify their value at run-time.
- Add parameters to a GLOBAL statement to preserve them.
-
Remove unnecessary VERBATIM statements.
Metadata
Release files for nmodl-preprocessor 1.0.5
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.5.tar.gz | 45.4 kB | Without provenance | Details for nmodl_preprocessor-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nmodl_preprocessor-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for nmodl_preprocessor-1.0.5-py3-none-any.whl |
Total release size: 59.2 kB
Release files / nmodl_preprocessor-1.0.5.tar.gz
| Download URL | nmodl_preprocessor-1.0.5.tar.gz |
|---|---|
| Size | 45.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482883f05e2da9725d854d1d3d4db99efb9b2ee36286b45b22307647d45b52f0
|
|
BLAKE2b-256 checksum How to use checksums |
dc31fe18b268f49ffc73918a6f2477f40d0fb4c6bbaec3ed20b66dd8f3c89775
|
| 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.5-py3-none-any.whl
| Download URL | nmodl_preprocessor-1.0.5-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe2daa78a8b8ab7214640161946d5224e47a28960de402ef058a73eb1a72e974
|
|
BLAKE2b-256 checksum How to use checksums |
2b2c27c767520745b9a07522bfdf822eadf0ef8f1fb73f9fd17cd27040422a8c
|
| 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.5
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.