Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Sep 13, 2024
1 parent f30740f commit e669953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand Down

0 comments on commit e669953

Please sign in to comment.