Skip to content

Commit

Permalink
small bug fix in topology connect_to_lv
Browse files Browse the repository at this point in the history
  • Loading branch information
khelfen committed Aug 12, 2024
1 parent de013e8 commit d68e4d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,9 @@ def _choose_random_substation_id():
"component is therefore connected to random LV bus."
)
bus = random.choice(
lv_grid.buses_df[~lv_grid.buses_df.in_building.astype(bool)].index
lv_grid.buses_df[
~lv_grid.buses_df.in_building.astype(bool)
].index.tolist()
)
comp_data.pop("geom", None)
comp_data.pop("p")
Expand Down

0 comments on commit d68e4d4

Please sign in to comment.