A high-level framework for cardiac model creation and simulation setup.
Project description
pycemrg-image-analysis
A high-level framework for cardiac image segmentation post-processing and model creation, built on SimpleITK. Maintained by the Cardiac Electromechanics Research Group (CEMRG) at Imperial College London.
Installation
This library depends on pycemrg, which provides the core label management and configuration scaffolding utilities. Both packages should be installed together.
1. Clone both repositories
git clone https://github.com/OpenHeartDevelopers/pycemrg.git
git clone https://github.com/OpenHeartDevelopers/pycemrg-image-analysis.git
2. Create and activate a virtual environment
Preferred: Conda
conda create -n pycemrg-image-analysis python=3.10 -y
conda activate pycemrg-image-analysis
Or via python's venv
python -m venv .venv
source .venv/bin/activate # on Windows: .venv\Scripts\activate
3. Install both packages in editable mode
Install pycemrg first, then pycemrg-image-analysis:
pip install -e pycemrg/
pip install -e pycemrg-image-analysis/
Why editable (
-e)? Editable installs link directly to the source tree so changes to either package take effect immediately without reinstalling.
Running the tests
# Unit tests (no data required)
pytest pycemrg-image-analysis/tests/unit/
# Integration tests (requires segmentation data)
PYCEMRG_TEST_DATA_ROOT=/path/to/your/data pytest pycemrg-image-analysis/tests/integration/
# All tests
pytest pycemrg-image-analysis/
Integration tests are skipped automatically when PYCEMRG_TEST_DATA_ROOT is not set.
Requirements
- Python ≥ 3.10
- SimpleITK ≥ 2.4.0
pycemrg≥ 0.1.0 (see above)
All other dependencies are declared in pyproject.toml and installed automatically by pip.
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
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 pycemrg_image_analysis-0.1.0.tar.gz.
File metadata
- Download URL: pycemrg_image_analysis-0.1.0.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa11104681641806c48d79fddc9ae148e63413295fd70df43cdca9fdb40ae2f2
|
|
| MD5 |
ead66067ddde5ca8ace17fbca7152c03
|
|
| BLAKE2b-256 |
608ce42d89c76410ef28e155ad20fe59069c811f5e80d488cef043301540425e
|
File details
Details for the file pycemrg_image_analysis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycemrg_image_analysis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a64256099b728f68d2c11d9d63878ab432517f09ab3e214acceb5d766a70b96
|
|
| MD5 |
7904d24d4bd97d0095164c9ce565dc29
|
|
| BLAKE2b-256 |
6280e059595beae2b1bdd4a09301e591a4b1ea16954618a2935c094e26fcef7e
|