edisgo.tools.pseudo_coordinates

Module Contents

Functions

make_pseudo_coordinates_graph(→ networkx.Graph)

Generates pseudo coordinates for one graph.

make_pseudo_coordinates(edisgo_obj[, mv_coordinates])

Generates pseudo coordinates for all LV grids and optionally MV grid.

edisgo.tools.pseudo_coordinates.make_pseudo_coordinates_graph(G: networkx.Graph, branch_detour_factor: float) networkx.Graph[source]

Generates pseudo coordinates for one graph.

Parameters:
  • G (networkx.Graph) – Graph object to generate pseudo coordinates for.

  • branch_detour_factor (float) – Defines the quotient of the line length and the distance of the buses.

Returns:

Graph with pseudo coordinates for all nodes.

Return type:

networkx.Graph

edisgo.tools.pseudo_coordinates.make_pseudo_coordinates(edisgo_obj: edisgo.EDisGo, mv_coordinates: bool = False)[source]

Generates pseudo coordinates for all LV grids and optionally MV grid.

Bus coordinates are changed in the Topology object directly. If you want to keep information on the original coordinates, hand a copy of the EDisGo object to this function.

Parameters:
  • edisgo_obj (EDisGo) – eDisGo object to create pseudo coordinates for.

  • mv_coordinates (bool, optional) – If False, pseudo coordinates are only generated for LV buses. If True, pseudo coordinates are as well generated for MV buses. Default: False.