From a5c36ad0d6ad382a002fe6b93513d994c6adc582 Mon Sep 17 00:00:00 2001 From: CarlosEpia Date: Tue, 17 Oct 2023 15:54:10 +0200 Subject: [PATCH] solve flake8 problem --- etrago/cluster/electrical.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etrago/cluster/electrical.py b/etrago/cluster/electrical.py index 82ecab19..072b70dc 100755 --- a/etrago/cluster/electrical.py +++ b/etrago/cluster/electrical.py @@ -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):