Build Guide

This document explains how you can build this library from source.

Building the Library from source

Example Setup for Ubuntu 24.04 (in WSL or physical/virtual machine)

It is recommended to create a virtual environment.

git clone https://github.com/PowerGridModel/power-grid-model-ds.git
cd power-grid-model-ds
uv sync
source ./.venv/bin/activate

Install from source in develop mode.

uv sync

Then you can run the tests.

uv run pytest

Building Documentation

To build the documentation locally execute the following commands

uv sync --group doc
source ./.venv/bin/activate

# build the docs
cd docs
make clean #clean the build folder
make html

This will generate a webpage in the build folder with an index.html file. Open this file in a browser to view the documentation.