pypsa.Network.import_from_pypower_ppc#
- Network.import_from_pypower_ppc(ppc: dict, overwrite_zero_s_nom: float | None = None) None#
Import network from PYPOWER PPC dictionary format version 2.
Converts all baseMVA to base power of 1 MVA.
For the meaning of the pypower indices, see also pypower/idx_*.
- Parameters:
ppc (PYPOWER PPC dict) – PYPOWER PPC dictionary to import from.
overwrite_zero_s_nom (Float or None, default None) – If a float, all branches with s_nom of 0 will be set to this value.
Examples
>>> from pypower.api import case30 >>> ppc = case30() >>> n.import_from_pypower_ppc(ppc)