pypsa.Network.import_from_pypower_ppc

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)

  • overwrite_zero_s_nom (Float or None, default None)

Examples

>>> from pypower.api import case30
>>> ppc = case30()
>>> n.import_from_pypower_ppc(ppc)