From 3edaf2574abfb0013be44f5b37e6e29ae7ef60b1 Mon Sep 17 00:00:00 2001 From: CarlosEpia Date: Wed, 4 Oct 2023 17:36:07 +0200 Subject: [PATCH] discard DC links under 220kV --- etrago/cluster/electrical.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etrago/cluster/electrical.py b/etrago/cluster/electrical.py index e46d6b0f..a834e8c3 100755 --- a/etrago/cluster/electrical.py +++ b/etrago/cluster/electrical.py @@ -320,6 +320,8 @@ def cluster_on_extra_high_voltage(etrago, busmap, with_time=True): # Dealing with links links = network.links.copy() dc_links = links[links["carrier"] == "DC"] + # Discard links connected to buses under 220 kV + dc_links = dc_links[dc_links.bus0.isin(buses.index)] links = links[links["carrier"] != "DC"] new_links = (