Skip to content

Commit

Permalink
Update the arguments list for a special case
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef committed Jan 14, 2025
1 parent 7835858 commit 60fe1d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,9 +699,7 @@ def cluster_regions(busmaps, inputs, output):
# Fast-path if no clustering is necessary
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")
)
clustering = pypsa.clustering.spatial.Clustering(n, busmap, linemap)
elif len(n.buses) < n_clusters:
logger.error(
f"Desired number of clusters ({n_clusters}) higher than the number of buses ({len(n.buses)})"
Expand Down

0 comments on commit 60fe1d0

Please sign in to comment.