pypsa.pf.aggregate_multi_graph

pypsa.pf.aggregate_multi_graph#

pypsa.pf.aggregate_multi_graph(sub_network: SubNetwork) None#

Aggregate branches between same buses and replace with a single branch with aggregated properties (e.g. s_nom is summed, length is averaged).