cluster_network: fix if no clustering required
This commit is contained in:
parent
6c9d23ced2
commit
73d1353608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user