Skip to main content

A python library for cardiac geometries

Project description

_

Create and publish a Docker image Test package Test package MPI Pre-commit PyPI version

Cardiac geometries

Cardiac geometries is a software package built on top of cariac-geometries-core that adds support for creating idealized cardiac geometries for dolfinx.

There are two ways you can use cardiac-geomtries, either using the command line interface, e.g

geox lv-ellipsoid --create-fibers lv-mesh --fiber-space P_2

or using the python API e.g

geo =  cardiac_geometries.mesh.lv_ellipsoid(outdir="lv-mesh", create_fibers=True, fiber_space="P_2")

Install

To install the package you can use pip

python3 -m pip install cardiac-geometriesx

however, this assumes that you already have dolfinx pre-installed. You can also use the provided docker image e.g

docker pull ghcr.io/computationalphysiology/cardiac-geometriesx:latest

To start a new container interactive you can do

docker run --name geox -v $PWD:/home/shared -w /home/shared -it ghcr.io/computationalphysiology/cardiac-geometriesx:latest

or if you just want to create a mesh and exit you can run the command line interface directly e.g

docker run --rm -v $PWD:/home/shared -w /home/shared -it ghcr.io/computationalphysiology/cardiac-geometriesx:latest geox lv-ellipsoid --create-fibers lv-mesh --fiber-space P_2

Authors

Henrik Finsberg (henriknf@simula.no)

License

MIT

Contributing

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

cardiac_geometriesx-0.3.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

cardiac_geometriesx-0.3.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cardiac_geometriesx-0.3.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for cardiac_geometriesx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c2111ee361ff4607212f07a9be38ad78e272c80a963ba2e317827794378c8ee
MD5 38681b66d694d6551a208918eb4b68c0
BLAKE2b-256 57b2f6f962c9d1a0b54e11b184b50c1e612da0fbb4ecfa1610cf3c47c8872d02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cardiac_geometriesx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad168c1fdaca4d7fe3319d1633d3588939667bc233da74fc839f164cd921aacb
MD5 71427f8aa65c6043b9d495fd5447de64
BLAKE2b-256 bd5251be328b75aea8220a57f6e5a1bbed24a6e2c4f51240627b21173be183da

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