add cost uncertainty opts for suptechs (#189)

This commit is contained in:
Fabian Neumann 2020-09-24 10:09:11 +02:00 committed by GitHub
parent fee8ef92d4
commit ec803a372e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,8 @@ if __name__ == "__main__":
for o in opts: for o in opts:
oo = o.split("+") 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] carrier = oo[0]
cost_factor = float(oo[1]) cost_factor = float(oo[1])
if carrier == "AC": # lines do not have carrier if carrier == "AC": # lines do not have carrier