[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-05-20 10:03:41 +00:00
parent d7435b6214
commit 6722e584ba

View File

@ -735,9 +735,9 @@ def add_operational_reserve_margin(n, sns, config):
.loc[vres_i.intersection(ext_i)] .loc[vres_i.intersection(ext_i)]
.rename({"Generator-ext": "Generator"}) .rename({"Generator-ext": "Generator"})
) )
lhs = summed_reserve + (p_nom_vres * (-EPSILON_VRES * xr.DataArray(capacity_factor))).sum( lhs = summed_reserve + (
"Generator" p_nom_vres * (-EPSILON_VRES * xr.DataArray(capacity_factor))
) ).sum("Generator")
# Total demand per t # Total demand per t
demand = get_as_dense(n, "Load", "p_set").sum(axis=1) demand = get_as_dense(n, "Load", "p_set").sum(axis=1)