Skip to main content

_

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")

The geometry is saved with io4dolfinx to geometry.bp using the adios2 backend. Pass --io-backend h5py (or io_backend="h5py" in the python API) to instead write geometry.h5 using the h5py backend. Geometry.from_folder reads either file.

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 conda

conda install -c conda-forge cardiac-geometriesx

or the provided docker image

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

Metadata

Release files for cardiac-geometriesx 0.23.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cardiac-geometriesx 0.23.2
File Size Uploaded Provenance Actions
cardiac_geometriesx-0.23.2.tar.gz 78.8 kB With provenance Details for cardiac_geometriesx-0.23.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cardiac-geometriesx 0.23.2
File Interpreter ABI Platform Actions
cardiac_geometriesx-0.23.2-py3-none-any.whl Python 3 none any Details for cardiac_geometriesx-0.23.2-py3-none-any.whl

Total release size: 142.2 kB

Release files / cardiac_geometriesx-0.23.2.tar.gz

Download URL cardiac_geometriesx-0.23.2.tar.gz
Size 78.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8b2637c5aafea8fb03eac00a5c2a0056263ccfee056fc66c6ec33dd1965715
BLAKE2b-256 checksum
How to use checksums
31894174e0e0c10ee27166a8a38457a9a80e4c8fca52a4c9e9e3075456227a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / cardiac_geometriesx-0.23.2-py3-none-any.whl

Download URL cardiac_geometriesx-0.23.2-py3-none-any.whl
Size 63.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a8c7d91023562a33c435ee11d7b8c9fefaea300b8219d9505c9eeb65edd417b
BLAKE2b-256 checksum
How to use checksums
2e650a4f2f243ca75b0ac84f7d4cdac5eae788062c1a5854b06828c763a8ba28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for cardiac-geometriesx 0.23.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cardiac_geometriesx-0.23.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.23.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page