Skip to content

Commit d68e4d4

Browse files
committed
small bug fix in topology connect_to_lv
1 parent de013e8 commit d68e4d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

edisgo/network/topology.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,9 @@ def _choose_random_substation_id():
22892289
"component is therefore connected to random LV bus."
22902290
)
22912291
bus = random.choice(
2292-
lv_grid.buses_df[~lv_grid.buses_df.in_building.astype(bool)].index
2292+
lv_grid.buses_df[
2293+
~lv_grid.buses_df.in_building.astype(bool)
2294+
].index.tolist()
22932295
)
22942296
comp_data.pop("geom", None)
22952297
comp_data.pop("p")

0 commit comments

Comments
 (0)