API reference¶
The API reference is generated directly from the docstrings in the
groundinsight source tree via
mkdocstrings. Every page below corresponds
to one Python module; navigate through the pages to see the public functions,
classes and their signatures.
Modules¶
- Network operations — high-level factory functions for creating networks, buses, branches, sources, faults, paths, and for running fault calculations.
- Core models — Pydantic data classes for
Bus,Branch,Source,Fault,Network, the differentResult*containers and theComplexNumberhelper. - Electrical network — numerical core: assembly of the admittance matrices, sparse LU solve, reduction-factor and grounding- impedance computation.
- Pathfinder — DFS-based enumeration of every simple path from each source bus to the active fault bus.
- Plotting — Matplotlib bar-plot helpers for EPR, branch currents and bus currents.
- Database — SQLAlchemy CRUD helpers for persisting bus types, branch types and entire networks to SQLite.
Top-level package¶
The groundinsight top-level module re-exports the most commonly used
symbols so that everyday work only requires import groundinsight as gi: