Installation#

MoDaCor requires Python 3.12 or newer. The recommended workflow uses uv to obtain Python and manage the environment.

Released package#

uv python install 3.12
uv venv --python 3.12
source .venv/bin/activate
uv pip install modacor

On Windows PowerShell, activate the environment with:

.venv\Scripts\Activate.ps1

Source checkout#

From the repository root:

uv venv --python 3.12 .venv-dev
source .venv-dev/bin/activate
uv pip install -e ".[tests,lint,docs]"

Optional capabilities#

Install extras only when a workflow requires them:

uv pip install "modacor[server]"       # HTTP runtime service
uv pip install "modacor[tiled]"        # Tiled source and sink
uv pip install "modacor[plotting]"     # Plotly live-output sinks
uv pip install "modacor[attenuation]"  # attenuation-coefficient models
uv pip install "modacor[masks]"        # morphology helpers

Extras may be combined, for example modacor[server,plotting].

Continue with the Quickstart, which needs only the base installation.