From 73d13536083218d0ff2bf1c5782c4aef922dd217 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 23 Aug 2024 09:17:21 +0200 Subject: [PATCH] cluster_network: fix if no clustering required --- scripts/cluster_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index 79184167..9e1db6a7 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -512,7 +512,7 @@ if __name__ == "__main__": busmap = n.buses.index.to_series() linemap = n.lines.index.to_series() clustering = pypsa.clustering.spatial.Clustering( - n, busmap, linemap, linemap, pd.Series(dtype="O") + n, busmap, linemap ) else: Nyears = n.snapshot_weightings.objective.sum() / 8760