Skip to main content

hermes-drh

HERMES (Hyperthermia Electromagnetic and Robust Modeling Evaluation Suite) is a Python framework for patient-specific deep regional hyperthermia (DRH) research: MRI-derived voxel models, 3D FDTD electromagnetic simulation, SAR and simplified thermal post-processing, optional four-quadrant antenna optimization, and visualization.

All CLI paths below assume your current working directory is CODE/, so relative paths like dataset/validation_data/001 resolve to CODE/dataset/validation_data/001.

Development environment (CODE/.venv)

Create an isolated venv inside CODE/ (keeps thesis dataset/ and best_model.pth reachable via relative paths):

cd path/to/thesis/CODE

# One-shot bootstrap (editable install, default extras: all)
bash scripts/bootstrap_venv.sh

source .venv/bin/activate
hermes-simulate --help

Manual equivalent:

cd path/to/thesis/CODE
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip wheel
pip install -e ".[all]"    # or [dev], [segmentation], [segmentation,dashboard]

Checkpoint and validation data (from CODE/):

export HERMES_CHECKPOINT="$PWD/best_model.pth"

hermes-simulate --modalities-dir dataset/validation_data/001 \
  --max-dim 80 --time-steps 200 --skip-animations \
  --results-dir results/smoke_001

If BraTS folders live next to CODE/ (thesis root) instead of under CODE/dataset/:

hermes-simulate --modalities-dir ../dataset/validation_data/001 \
  --max-dim 80 --time-steps 200 --skip-animations \
  --results-dir results/smoke_001

TestPyPI smoke test (clean install in CODE/.venv)

Verifies the published wheel while still using local dataset/ (run every command from CODE/):

cd path/to/thesis/CODE
rm -rf .venv && python3 -m venv .venv && source .venv/bin/activate
pip install -U pip

pip install -i https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple/ \
  "hermes-drh[segmentation]==0.1.0"

export HERMES_CHECKPOINT="$PWD/best_model.pth"

hermes-simulate --modalities-dir dataset/validation_data/001 \
  --max-dim 80 --time-steps 200 --skip-animations \
  --results-dir results/testpypi_smoke

Production PyPI (after release):

pip install "hermes-drh[segmentation]==0.1.0"

Install extras

Command Use case
pip install -e . FDTD from existing segmentation NIfTI only
pip install -e ".[segmentation]" --modalities-dir / --modalities (PyTorch + MONAI)
pip install -e ".[dashboard]" Streamlit dashboard
pip install -e ".[all]" Segmentation + dashboard
pip install -e ".[dev]" Contributors (pytest, build, twine, ruff)

Requires Python 3.11–3.13. For MP4 animations, install ffmpeg on your system.

Quickstart (from CODE/)

source .venv/bin/activate   # after bootstrap above

# Existing segmentation NIfTI (no PyTorch)
hermes-simulate --seg path/to/labels.nii.gz --results-dir results/from_seg

# BraTS-style folder under CODE/dataset/
export HERMES_CHECKPOINT="$PWD/best_model.pth"
hermes-simulate --modalities-dir dataset/validation_data/001 --results-dir results/from_modalities

# Bundled example YAML
hermes-simulate --config configs/simulation_example.yaml \
  --modalities-dir dataset/validation_data/001 \
  --results-dir results/example_yaml

# MP4s from streamed frames
hermes-build-animations results/from_modalities --subsample 5 --skip-3d

Dashboard

source .venv/bin/activate
pip install -e ".[dashboard]"   # or ".[all]"
hermes-dashboard

Run from CODE/ so the dashboard finds results/ and can launch hermes-simulate.

Thesis paper bundle (not on PyPI)

From CODE/ (uses local hermes-simulate when the venv is active):

python run_paper_bundle.py --modalities-dir dataset/validation_data/001 --bundle-root results

License

MIT — see LICENSE.

Metadata

Release files for hermes-drh 0.1.0

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

Source distribution (sdist)

Source distribution for hermes-drh 0.1.0
File Size Uploaded Provenance Actions
hermes_drh-0.1.0.tar.gz 125.1 kB Without provenance Details for hermes_drh-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hermes-drh 0.1.0
File Interpreter ABI Platform Actions
hermes_drh-0.1.0-py3-none-any.whl Python 3 none any Details for hermes_drh-0.1.0-py3-none-any.whl

Total release size: 252.9 kB

Release files / hermes_drh-0.1.0.tar.gz

Download URL hermes_drh-0.1.0.tar.gz
Size 125.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db5e3b5eef3499b233f0e2290ac0e40d0adf174aeb7a365c801ea07a553a0b2c
BLAKE2b-256 checksum
How to use checksums
4b98e350a36903f1aa407018ce8f11f8ca01eff54af5465b9a033f52192880a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermes_drh-0.1.0-py3-none-any.whl

Download URL hermes_drh-0.1.0-py3-none-any.whl
Size 127.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8b26cfd4baee872aedc313bd349b7fd4232c5f9efd4f10aa7d4cedfe9ab5cd9
BLAKE2b-256 checksum
How to use checksums
33b6f9cc849a7aa3dcd8d5317b3a97ec591d86cfcfaa6105d3301a66b612b635
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for hermes-drh 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No 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