MCPcopy Index your code
hub / github.com/PowerGridModel/power-grid-model-ds

github.com/PowerGridModel/power-grid-model-ds @v2.0.0a1201998963

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0a1201998963 ↗ · + Follow
732 symbols 2,961 edges 128 files 257 documented · 35% updated 1d agov1.10.2 · 2026-07-07★ 3325 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PyPI version License: MIT Downloads Downloads

CI Build docs

Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating Vulnerabilities

Nightly build

DOI

Power Grid Model logo

Power Grid Model Data Science (DS)

The Power Grid Model DS project extends the capabilities of the power-grid-model calculation core with a modelling and simulation interface. This is aimed at building data science software applications related to or using the power-grid-model project. It defines a Grid dataclass which manages the consistency of the complete network.

Some highlighted features:

  • Using a model definition that corresponds to the power-grid-model, through which it is easy to do efficient grid calculations.
  • The extended numpy model provides features which make development more pleasant and easy.
  • Using the graph representation of the network, graph algorithms in rustworkx can be used to analyze the network.
  • An interface to model network mutations which is useful in simulation use-cases.
  • Visualization for easy exploration and debugging.

Grid Visualisation

See the power-grid-model-ds documentation for more information.

Installation

Pip

pip install power-grid-model-ds

License

This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.

Licenses third-party libraries

This project includes third-party libraries, which are licensed under their own respective Open-Source licenses. SPDX-License-Identifier headers are used to show which license is applicable. The concerning license files can be found in the LICENSES directory.

Contributing

Please read CODE_OF_CONDUCT and CONTRIBUTING for details on the process for submitting pull requests to us.

Citations

If you are using Power Grid Model DS in your research work, please consider citing our library using the following references.

DOI

@software{Schouten_PowerGridModel_power-grid-model-ds,
  author = {Schouten, Jaap and Baaijen, Thijs and Koppen, Vincent and van der Voort, Sven and {Contributors to the LF Energy project Power Grid Model}},
  doi = {10.5281/zenodo.14825565},
  license = {MPL-2.0},
  title = {{PowerGridModel/power-grid-model-ds}},
  url = {https://github.com/PowerGridModel/power-grid-model-ds}
}
@software{Xiang_PowerGridModel_power-grid-model,
  author = {Xiang, Yu and Salemink, Peter and van Westering, Werner and Bharambe, Nitish and Govers, Martinus G.H. and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry Jinfeng and Figueroa Manrique, Santiago and Jagutis, Laurynas and Wang, Chenguang and van Raalte, Marc and {Contributors to the LF Energy project Power Grid Model}},
  doi = {10.5281/zenodo.8054429},
  license = {MPL-2.0},
  title = {{PowerGridModel/power-grid-model}},
  url = {https://github.com/PowerGridModel/power-grid-model}
}
@inproceedings{Xiang2023,
  author = {Xiang, Yu and Salemink, Peter and Stoeller, Bram and Bharambe, Nitish and van Westering, Werner},
  booktitle={27th International Conference on Electricity Distribution (CIRED 2023)},
  title={Power grid model: a high-performance distribution grid calculation library},
  year={2023},
  volume={2023},
  number={},
  pages={1089-1093},
  keywords={},
  doi={10.1049/icp.2023.0633}
}

Contact

Please read SUPPORT for how to connect and get into contact with the Power Grid Model project.

Core symbols most depended-on inside this repo

Shape

Function 348
Method 277
Class 102
Route 5

Languages

Python100%

Modules by API surface

src/power_grid_model_ds/_core/model/graphs/models/base.py50 symbols
tests/unit/model/arrays/test_array.py47 symbols
tests/unit/model/graphs/test_graph_model.py39 symbols
src/power_grid_model_ds/_core/model/arrays/base/array.py36 symbols
tests/unit/model/test_containers.py31 symbols
tests/unit/model/arrays/test_build.py29 symbols
src/power_grid_model_ds/_core/model/graphs/models/rustworkx.py29 symbols
tests/unit/model/grids/test_grid_base.py28 symbols
src/power_grid_model_ds/_core/model/grids/base.py25 symbols
tests/unit/model/arrays/test_modify.py23 symbols
tests/unit/model/arrays/test_filters_filter.py23 symbols
tests/unit/model/arrays/test_filters_exclude.py21 symbols

For agents

$ claude mcp add power-grid-model-ds \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page