fix bug with cyclic shift
This commit is contained in:
parent
fa935be5cb
commit
66257e1e84
@ -1573,17 +1573,18 @@ def add_EVs(
|
|||||||
options["EV_upper_degree_factor"],
|
options["EV_upper_degree_factor"],
|
||||||
)
|
)
|
||||||
suffix = " land transport EV"
|
suffix = " land transport EV"
|
||||||
|
|
||||||
p_shifted = (p_set + cycling_shift(p_set, 1) + cycling_shift(p_set, 2)) / 3
|
p_shifted = (p_set + cycling_shift(p_set, 1) + cycling_shift(p_set, 2)) / 3
|
||||||
|
|
||||||
cyclic_eff = p_set.div(p_shifted)
|
cyclic_eff = p_set.div(p_shifted)
|
||||||
|
|
||||||
efficiency *= cyclic_eff
|
efficiency *= cyclic_eff
|
||||||
|
|
||||||
p_nom = electric_share * p_set.div(efficiency).max()
|
p_nom = electric_share * p_set.div(efficiency).max()
|
||||||
|
|
||||||
profile = p_shifted.div(efficiency) / p_shifted.div(efficiency).max()
|
profile = p_set.div(efficiency) / p_set.div(efficiency).max()
|
||||||
|
|
||||||
|
|
||||||
n.madd(
|
n.madd(
|
||||||
"Link",
|
"Link",
|
||||||
nodes,
|
nodes,
|
||||||
|
Loading…
Reference in New Issue
Block a user