Skip to main content

Library to run cardiac EP simulations

Project description

pre-commit Create and publish a Docker image Build docs Test package PyPI version


fenics-beat

Library for running cardiac electrophysiology simulations.

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
    
  • 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


Download files

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

Source Distribution

fenics_beat-0.0.8.tar.gz (159.6 kB view details)

Uploaded Source

Built Distribution

fenics_beat-0.0.8-py3-none-any.whl (163.6 kB view details)

Uploaded Python 3

File details

Details for the file fenics_beat-0.0.8.tar.gz.

File metadata

  • Download URL: fenics_beat-0.0.8.tar.gz
  • Upload date:
  • Size: 159.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fenics_beat-0.0.8.tar.gz
Algorithm Hash digest
SHA256 eb55147c7e2065d6979b2aefdd6b70bae14726f8f36772b0b321a07afd107b2c
MD5 38b9126695f33f42ee0242c74093f020
BLAKE2b-256 1224ebfa19f20fbc34c37dea568ffbd724cd48ffc0e9b0daf7f1f9a0dc157dae

See more details on using hashes here.

File details

Details for the file fenics_beat-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: fenics_beat-0.0.8-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.4

File hashes

Hashes for fenics_beat-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 593c291b7883558b0f9391d4ee9d7c5326ecb452e35539d406f0aff397822614
MD5 0852b77f31af5f657eda9f1583dfc8e1
BLAKE2b-256 099ae91ede1f43c208f11704bf2fcca7bec25d8a24a54020c5b50b7fb2540e76

See more details on using hashes here.

Supported by

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