Skip to content

Commit

Permalink
Add buses connected by dc lines to connected_buses
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Sep 26, 2023
1 parent bca53a7 commit 5e566b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def buses_grid_linked(network, voltage_level):
mask = (
network.buses.index.isin(network.lines.bus0)
| (network.buses.index.isin(network.lines.bus1))
| (network.buses.index.isin(network.links.loc[network.links.carrier=="DC", "bus0"]))
| (network.buses.index.isin(network.links.loc[network.links.carrier=="DC", "bus1"]))
) & (network.buses.v_nom.isin(voltage_level))

df = network.buses[mask]
Expand Down

0 comments on commit 5e566b1

Please sign in to comment.