Merge branch 'master' of github.com:PyPSA/pypsa-eur

This commit is contained in:
Fabian Neumann 2024-01-17 10:07:42 +01:00
commit 5faab62a1e

View File

@ -341,6 +341,8 @@ def prepare_network(
for df in ( for df in (
n.generators_t.p_max_pu, n.generators_t.p_max_pu,
n.generators_t.p_min_pu, n.generators_t.p_min_pu,
n.links_t.p_max_pu,
n.links_t.p_min_pu,
n.storage_units_t.inflow, n.storage_units_t.inflow,
): ):
df.where(df > solve_opts["clip_p_max_pu"], other=0.0, inplace=True) df.where(df > solve_opts["clip_p_max_pu"], other=0.0, inplace=True)