Skip to main content

Mitchell-Schaeffer model.

Project description

Mitchell-Schaeffer Finitewave model

This is a phenomenological two-variable model capturing the essence of cardiac action potential dynamics using a simplified formulation. It separates inward and outward currents and uses a single gating variable to regulate excitability.

This model implementation can be used separately from the Finitewave, allowing for standalone simulations and testing of the model dynamics without the need for the entire framework.

Reference

Mitchell, C. C., & Schaeffer, D. G. (2003). A two-current model for the dynamics of cardiac membrane potential. Bulletin of Mathematical Biology, 65, 767–793.

DOI: https://doi.org/10.1016/S0092-8240(03)00041-7

How to use (quickstart)

python -m examples.mitchell_schaeffer_example

How to test

python -m pytest -q

Repository structure

.
├── mitchell_schaeffer/               # equations package (ops.py)
│   ├── __init__.py
│   └── ops.py                        # fill with the model equations (pure functions)
├── implementation/                   # 0D model implementation
│   ├── __init__.py
│   └── mitchell_schaeffer_0d.py
├── example/
│   └── mitchell_schaeffer_example.py # minimal script to run a short trace
├── tests/
│   └── mitchell_schaeffer_test.py    # smoke test; extend with reproducibility checks
├── .gitignore
├── LICENSE                           # MIT
├── pyproject.toml                    # placeholders to replace
└── README.md                         # this file

Variables

  • u — Transmembrane potential (dimensionless)
  • h — Gating variable (dimensionless)

Parameters

Parameters and their defualt values

  • tau_close = 150.0 - Inactivation time constant (closing).
  • tau_open = 120.0 - Recovery time constant (opening).
  • tau_out = 6.0 - Time constant for outward current (repolarization)
  • tau_in = 0.3 - Time constant for inward flow.
  • u_gate = 0.13 - Threshold potential for switching gate dynamics.

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

finitewave_model_mitchell_schaeffer-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file finitewave_model_mitchell_schaeffer-0.3.0.tar.gz.

File metadata

File hashes

Hashes for finitewave_model_mitchell_schaeffer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 503ef0b7f0f021b4ba006f197637fad8e0c27ffb02dced335029a76e3548e305
MD5 4d005f00122b66ba4f9a09336f749864
BLAKE2b-256 e5d668d073e36eb35bfa33d00f998dfa3da1864f48ed85e2677856c39a72c103

See more details on using hashes here.

File details

Details for the file finitewave_model_mitchell_schaeffer-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for finitewave_model_mitchell_schaeffer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82e76c934ca7ff67dce8ed4a2ebd1c6937f6eeb0fcb849895f6262f83e05d52d
MD5 5621cff9467901c156ccfe16df24ce68
BLAKE2b-256 7cc8f15b82870eab0a26acea0cc5323a5eaa29b0f11c503be33bb7c8d918e313

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