cluster_network: fix if no clustering required

This commit is contained in:
Fabian Neumann 2024-08-23 09:17:21 +02:00
parent 6c9d23ced2
commit 73d1353608

View File

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