Skip to content

Commit

Permalink
solve flake8 problem
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Oct 17, 2023
1 parent 1027eca commit a5c36ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etrago/cluster/electrical.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ def delete_ehv_buses_no_lines(network):
buses_ac["with_gen"] = buses_ac.index.isin(network.generators.bus)

delete_buses = buses_ac[
(buses_ac["with_line"] == False)
& (buses_ac["with_load"] == False)
& (buses_ac["with_link"] == False)
& (buses_ac["with_gen"] == False)
(~buses_ac["with_line"])
& (~buses_ac["with_load"])
& (~buses_ac["with_link"])
& (~buses_ac["with_gen"])
].index

if len(delete_buses):
Expand Down

0 comments on commit a5c36ad

Please sign in to comment.