Installation¶
-
⭐ Star the repository on GitHub to support the project!
-
Make sure you have Python 3.10, 3.11, or 3.12 installed. ⚠️ Windows users: Python 3.12 is not supported. Use Python 3.10.11 or 3.11.9.
-
Install gridfm-datakit
python -m pip install --upgrade pip # Upgrade pip
pip install gridfm-datakit
- Install Julia with PowerModels and Ipopt
gridfm_datakit setup_pm
Optional: PowSyBl¶
To read XIIDM, CGMES, PSS/E or UCTE files, or to solve the power flow with PowSyBl, install the powsybl extra. See the PowSyBl page.
pip install 'gridfm-datakit[powsybl]'
Optional: dynamic (time-domain) simulation¶
Dynamic simulation needs two extra things on top of the base install. See the Dynamic Simulation page for the full setup.
-
The
dynamicextra, which pulls inpypowsyblandzarr:bash pip install 'gridfm-datakit[dynamic]' -
A local Dynawo installation. It is a native solver and is not bundled with pypowsybl. Extract a release (e.g. to
~/dynawo) and declare it to powsybl in~/.itools/config.yml:yaml dynawo: homeDir: /path/to/dynawo debug: false
Verify both are usable:
python -c "from gridfm_datakit.dynamic.dynawo.api import check_dynawo_available; check_dynawo_available()"
For Developers¶
To install the latest development version from GitHub, follow these steps instead of step 3.
git clone https://github.com/gridfm/gridfm-datakit.git
cd "gridfm-datakit"
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip # Upgrade pip to ensure compatibility with pyproject.toml
pip3 install -e '.[test,dev]'