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.
Metadata
Release files for pycemrg-image-analysis 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycemrg_image_analysis-0.2.0.tar.gz | 55.6 kB | Without provenance | Details for pycemrg_image_analysis-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycemrg_image_analysis-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pycemrg_image_analysis-0.2.0-py3-none-any.whl |
Total release size: 124.2 kB
Release files / pycemrg_image_analysis-0.2.0.tar.gz
| Download URL | pycemrg_image_analysis-0.2.0.tar.gz |
|---|---|
| Size | 55.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e660c9d2fa45c10ee79098c6ae8232bb5677851c3ea8c45fcc96d799d10168b3
|
|
BLAKE2b-256 checksum How to use checksums |
487f3da5151374a6bd331835dc50bc52fe699c976abf9611552d28b095b88747
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / pycemrg_image_analysis-0.2.0-py3-none-any.whl
| Download URL | pycemrg_image_analysis-0.2.0-py3-none-any.whl |
|---|---|
| Size | 68.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62cd9c00fe80e1cc988190a9ce4600869498d9427cd98ba8accc0334bb029d0e
|
|
BLAKE2b-256 checksum How to use checksums |
d6bf8f988735ac6e61320e542195a5ed36003e5bd1cb73ef12bbd824b2beadf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Security for pycemrg-image-analysis 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.