Install the MGA Compass libraryΒΆ
The mga-compass library is installed from a clone of the repository with
uv. It needs no commercial solver: navigation and
interpolation run on HiGHS.
Clone the repository:
git clone https://github.com/EINS-TUDa/MGA-Compass.git cd MGA-Compass
Install the package and its dependencies:
uv sync --package mga-compass
Check the installation:
uv run python -c "import mga_compass; print('ok')"
To run notebooks with this environment as the kernel, e.g. in VS Code, and draw plots (see
Explore a near-optimal set in Python), add the notebook extra, which brings ipykernel, matplotlib and scipy:
uv sync --package mga-compass --extra notebook.
To build datasets from PyPSA networks you also need MGA Surveyor and PyPSA, which come with
the scripts extra: uv sync --package mga-compass --extra scripts.