From e66995371a32dff461b01c6647bfc4ab74e8e73c Mon Sep 17 00:00:00 2001 From: birgits Date: Fri, 13 Sep 2024 14:07:10 +0200 Subject: [PATCH] Add comment --- edisgo/network/topology.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edisgo/network/topology.py b/edisgo/network/topology.py index c9be560f..a7613588 100755 --- a/edisgo/network/topology.py +++ b/edisgo/network/topology.py @@ -2546,6 +2546,7 @@ def handle_voltage_level_7(): # if no bus is within the allowed distance, connect to new bus if len(lv_buses_masked) == 0: + # connect to MV if this is the best option if ( allow_mv_connection and len(mv_buses_masked) > 0 @@ -2559,7 +2560,7 @@ def handle_voltage_level_7(): return target_bus.name else: # if distance is larger than allowed, create new bus and connect to - # closest bus via a new line + # the closest bus via a new line target_bus = self._connect_to_lv_bus( edisgo_object, lv_buses.distance.idxmin(), comp_type, comp_data )