add_brownfield: fix lv_limit reached
This commit is contained in:
parent
29a95dc997
commit
73abb61967
@ -134,7 +134,7 @@ def disable_grid_expansion_if_LV_limit_hit(n):
|
|||||||
# allow small numerical differences
|
# allow small numerical differences
|
||||||
if lv_limit - total_expansion < 1:
|
if lv_limit - total_expansion < 1:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"LV is already reached (gap {diff} MWkm), disabling expansion and LV limit"
|
f"LV is already reached, disabling expansion and LV limit"
|
||||||
)
|
)
|
||||||
extendable_acs = n.lines.query("s_nom_extendable").index
|
extendable_acs = n.lines.query("s_nom_extendable").index
|
||||||
n.lines.loc[extendable_acs, "s_nom_extendable"] = False
|
n.lines.loc[extendable_acs, "s_nom_extendable"] = False
|
||||||
|
Loading…
Reference in New Issue
Block a user