Skip to content

heig-vd-ie/distflow-state-estimation

Repository files navigation

distflow-state-estimation

Algorithm for state estimation in a distribution grid

1. Install pipx on wsl

sudo apt update
sudo apt install pipx
pipx ensurepath --force

2. Install python 3.12 on wsl (if not installed)

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12
sudo apt install python3.12-venv

Reference: Tutorial is the following link

3. Install Poetry

pipx install poetry

4. Create virtual environment

python3.12 -m venv .venv
poetry env use .venv/bin/python3.12

5. Update .venv library

poetry update

Important

If psycopg-c installation raise the error: psycopg-c (3.1.18) not supporting PEP 517 builds

    sudo apt install libpq-dev gcc

7. Create docker container

docker compose up

Other command

Check which python is installed

which python3.12

Check python version

/usr/bin/python3 --version

or

python3.12 --version

Check the poetry linked environment

poetry3.12 env info

Check the Ubuntu

lsb_release -a

Initialize pyproject.toml

poetry init

About

Algorithm for state estimation in a distribution grid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published