add cost uncertainty opts for suptechs (#189)
This commit is contained in:
parent
fee8ef92d4
commit
ec803a372e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user