From 3d98b6ddd711cb8a5081f102786244441d39c0e0 Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Thu, 26 Oct 2023 11:50:25 +0200 Subject: [PATCH] Apply black --- etrago/cluster/electrical.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etrago/cluster/electrical.py b/etrago/cluster/electrical.py index 207de3e1..828e1576 100755 --- a/etrago/cluster/electrical.py +++ b/etrago/cluster/electrical.py @@ -634,6 +634,7 @@ def unify_foreign_buses(etrago): axis=1, ) n_clusters = (foreign_buses_load.country == country).sum() + if n_clusters < len(df): ( busmap_country,