Update scripts/cluster_network.py

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
Fabian Hofmann 2022-01-11 10:31:49 +01:00 committed by GitHub
parent 281700751a
commit 94364cbeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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