Skip to content

Commit

Permalink
Merge branch 'PyPSA:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ricnogfer authored Jun 12, 2023
2 parents dfa0448 + 778f850 commit 3ecda4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ def clustering_for_n_clusters(
n.links.eval("underwater_fraction * length").div(nc.links.length).dropna()
)
nc.links["capital_cost"] = nc.links["capital_cost"].add(
(nc.links.length - n.links.length).clip(lower=0).mul(extended_link_costs),
(nc.links.length - n.links.length)
.clip(lower=0)
.mul(extended_link_costs)
.dropna(),
fill_value=0,
)

Expand Down

0 comments on commit 3ecda4c

Please sign in to comment.