Skip to main content

Simulator for Linear Time-Invariant Kinetic Models using the NMODL file format.

Project description

matexp

This program solves systems of differential equations for the NEURON simulator using the approximate matrix exponential method of integration. This is a new method of integration. The solution is faster and more accurate than NEURONs built in "sparse" solver. This method is only applicable to systems which are linear and time-invariant, such as Markov kinetic models. This method is also limited to systems with one or two inputs.

This program uses the NMODL file format (".mod" files). The input kinetic model is an NMODL file, and the solution is written to a new NMODL file.

Installation

Prerequisites:

  • Linux
  • The g++ compiler
$ pip install matexp

Usage

$ matexp --help
usage: matexp [-h] [-v] [--plot] -t TIME_STEP [-c CELSIUS] [-e ERROR]
              [-i NAME MIN MAX] [--log [INPUT]] [--target {host,cuda}]
              [-f {32,64}]
              INPUT_PATH OUTPUT_PATH

positional arguments:
  INPUT_PATH            input path for unsolved NMODL file
  OUTPUT_PATH           output path for solved NMODL file

options:
  -h, --help            show this help message and exit
  -v, --verbose         print diagnostic information, give twice for trace mode

simulation parameters:
  --dt DT, --time_step DT
                        milliseconds, default: 0.025
  -t TEMPERATURE, --temperature TEMPERATURE
                        degrees celsius, default: 37
  -e ERROR, --error ERROR
                        maximum absolute error per millisecond. default: 10^-3

input specification:
  -i NAME MIN MAX, --input NAME MIN MAX
  --log [INPUT]         scale input logarithmically, for chemical concentrations

computer specification:
  --target {host,cuda}  default: host

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matexp-1.1.0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matexp-1.1.0-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file matexp-1.1.0.tar.gz.

File metadata

  • Download URL: matexp-1.1.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for matexp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9b5515a8eac79815aa9c952bf0c59666843a1e8f0ddbff597e11f1319b07aecc
MD5 c07800f6e5c628c098fd2a3c3d328956
BLAKE2b-256 9669d3ea1f282f35a623a596f0ec2a874228f763c54a71414feb452b46537764

See more details on using hashes here.

File details

Details for the file matexp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: matexp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for matexp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e47caba469f621a2eeb7fbca0a598dd41c0ae5870a9ab711cc99b7c495372732
MD5 ef0c0be5a13f96e1779578e001934dd6
BLAKE2b-256 1494daaa66045129a9ae5098ac9d59d63ae69d82b2eab60435678dfe29b47d3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page