Skip to content

Commit

Permalink
Drop links with undefined bus
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Aug 29, 2023
1 parent 79a45eb commit cf93f8c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions etrago/appl.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,19 @@ def run_etrago(args, json_path):
# adjust network regarding eTraGo setting
etrago.adjust_network()

etrago.network.mremove(
"Link",
etrago.network.links[
~etrago.network.links.bus0.isin(etrago.network.buses.index)
].index,
)
etrago.network.mremove(
"Link",
etrago.network.links[
~etrago.network.links.bus1.isin(etrago.network.buses.index)
].index,
)

# ehv network clustering
etrago.ehv_clustering()

Expand Down

0 comments on commit cf93f8c

Please sign in to comment.