From ec803a372ec3eb9220d1e91b32f7562d27c37414 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 24 Sep 2020 10:09:11 +0200 Subject: [PATCH] add cost uncertainty opts for suptechs (#189) --- scripts/prepare_network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepare_network.py b/scripts/prepare_network.py index 1fcba99f..b38b958c 100755 --- a/scripts/prepare_network.py +++ b/scripts/prepare_network.py @@ -182,7 +182,8 @@ if __name__ == "__main__": for o in opts: oo = o.split("+") - if oo[0].startswith(tuple(n.carriers.index)): + suptechs = map(lambda c: c.split("-", 2)[0], n.carriers.index) + if oo[0].startswith(tuple(suptechs)): carrier = oo[0] cost_factor = float(oo[1]) if carrier == "AC": # lines do not have carrier