diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index 30a8770d..51556b27 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -265,7 +265,7 @@ def clustering_for_n_clusters(n, n_clusters, custom_busmap=False, aggregate_carr else: raise AttributeError(f"potential_mode should be one of 'simple' or 'conservative' but is '{potential_mode}'") - if custom_busmap is False: + if not custom_busmap: busmap = busmap_for_n_clusters(n, n_clusters, solver_name, focus_weights, algorithm) else: busmap = custom_busmap