cluster_network: Introduce minimal clustering weight

This commit is contained in:
Jonas Hörsch 2018-08-27 19:14:34 +02:00
parent a146868cef
commit 2a8ec7e3db

View File

@ -46,7 +46,7 @@ def weighting_for_country(n, x):
l = normed(load.reindex(b_i, fill_value=0))
w= g + l
return (w * (100. / w.max())).astype(int)
return (w * (100. / w.max())).clip(lower=1.).astype(int)
## Plot weighting for Germany