From 2a8ec7e3db6e2fdd8289d000da9e0b3b9ad0301b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6rsch?= Date: Mon, 27 Aug 2018 19:14:34 +0200 Subject: [PATCH] cluster_network: Introduce minimal clustering weight --- scripts/cluster_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py index da39eb12..6a5f4281 100644 --- a/scripts/cluster_network.py +++ b/scripts/cluster_network.py @@ -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