Library to run cardiac EP simulations
Project description
fenics-beat
Library for running cardiac electrophysiology simulations.
- Source code: https://github.com/finsberg/fenics-beat
- Documentation: https://finsberg.github.io/fenics-beat
Getting started
Check out the examples at https://finsberg.github.io/fenics-beat/
Install
Using docker (recommended)
The simplest way to use fenics-beat
is to use the provided docker image. You can get this image by pulling it from the github registry
docker pull ghcr.io/finsberg/fenics-beat:latest
It is also possible to pull a specific version by changing the tag, e.g.
docker pull ghcr.io/finsberg/fenics-beat:v0.0.8
will use version 0.0.8.
In order to start a container you can use the docker run
command. For example the command
docker run --rm -v $(pwd):/home/shared -w /home/shared -ti ghcr.io/finsberg/fenics-beat:latest
will run the latest version and share your current working directory with the container.
The source code of fenics-beat
is located at /repo
in the docker container.
Using pip
fenics-beat
is also available on pypi and can be installed with
python3 -m pip install fenics-beat
However this requires FEniCS to already be installed. Currently, FEniCS can be installed by building from source, using conda or use some of the pre-built docker images
Automated tests
Upon pushing new code to the repository, a number of tests run:
- pre-commit tests.
- Install
pre-commit
:
python3 -m pip install pre-commit
- Run pre-commit hooks:
pre-commit run --all
- Install
- unit and integration tests can be found in
tests
folder- Install tests dependencies:
python3 -m pip install -e .[test]
- Run tests
python3 -m pytest
- Examples: All examples are run as part of building the documentation
Contributing guidelines
Detailed contributing guidelines are given here.
License
MIT
Need help or having issues
Please submit an issue
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
Built Distribution
File details
Details for the file fenics_beat-0.1.0.tar.gz
.
File metadata
- Download URL: fenics_beat-0.1.0.tar.gz
- Upload date:
- Size: 159.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11a1785f7044c188e846ad338f4e015dc9c0dd174906902458495e2ace7a401 |
|
MD5 | 4585a789e596ceaa7ff2cfc0a1cadbcd |
|
BLAKE2b-256 | a7fd0f04884f9ad10846beb02877cdaf78838b94f78850642887406dad9d1f4b |
File details
Details for the file fenics_beat-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fenics_beat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 163.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf34ac1165e86f53821d3a5b9795d0cd79a6210a54ea16952e9cb1ffb6b6456 |
|
MD5 | 7379100432298fa24b94914c314bb9fd |
|
BLAKE2b-256 | 79304f7a63d0f4bee0400b42308ccaa5d3a8763afc34aa065471b250d5768500 |