Skip to content

Commit

Permalink
Merge pull request #966 from openego/fixes/#874-delete-isolated-trans…
Browse files Browse the repository at this point in the history
…formers

Delete transformers before deleting buses
  • Loading branch information
ClaraBuettner committed Dec 14, 2022
2 parents fa17899 + 97fec4c commit ee08003
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/egon/data/datasets/fix_ehv_subnetworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FixEhvSubnetworks(Dataset):
def __init__(self, dependencies):
super().__init__(
name="FixEhvSubnetworks",
version="0.0.1",
version="0.0.2",
dependencies=dependencies,
tasks=run,
)
Expand Down Expand Up @@ -365,13 +365,15 @@ def fix_subnetworks(scn_name):

# Umspannwerk Vieselbach
# delete isolated bus and trafo
drop_bus(11.121774798935334, 51.00038603925895, 380, scn_name)
drop_trafo(11.121774798935334, 51.00038603925895, 220, 380, scn_name)
drop_bus(11.121774798935334, 51.00038603925895, 380, scn_name)


# Umspannwerk Waldlaubersheim
# delete isolated bus and trafo
drop_bus(7.815993836091339, 49.92211102637183, 380, scn_name)
drop_trafo(7.815993836091339, 49.92211102637183, 110, 380, scn_name)
drop_bus(7.815993836091339, 49.92211102637183, 380, scn_name)



def run():
Expand Down

0 comments on commit ee08003

Please sign in to comment.