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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finitewave_model_mitchell_schaeffer-0.6.0.tar.gz.
File metadata
- Download URL: finitewave_model_mitchell_schaeffer-0.6.0.tar.gz
- Upload date:
- Size: 97.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47db90b10016d4b9bf2d5c86f382b1c46f84113566eca880ffcc5f18362cf7e8
|
|
| MD5 |
5cd74cd27c1f2d9400d3d16902b4bb74
|
|
| BLAKE2b-256 |
3da779cbcf316a467022e0af8a622c637fd6a6b2edf5760ae3a75ffbabed9a7a
|
File details
Details for the file finitewave_model_mitchell_schaeffer-0.6.0-py3-none-any.whl.
File metadata
- Download URL: finitewave_model_mitchell_schaeffer-0.6.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bbd7395e844dc71bdc6396cf32a5181c14c05b470acada2ed49047236942aa9
|
|
| MD5 |
7e81439363f81d1f66339d5cc81d8214
|
|
| BLAKE2b-256 |
36bed75d270490f9096c10f40ef7b3a3df32588b1fea1a8a5cb27f1e1ca05a01
|