Merge branch 'master' of https://github.com/LukasFrankenQ/pypsa-eur
This commit is contained in:
commit
a8a5236a23
@ -645,12 +645,11 @@ def solve_network(n, config, solving, opts="", **kwargs):
|
|||||||
|
|
||||||
# check if enhanced_geothermal_performant might have changed model results
|
# check if enhanced_geothermal_performant might have changed model results
|
||||||
if (
|
if (
|
||||||
snakemake.config["sector"]["enhanced_geothermal"] and
|
snakemake.config["sector"]["enhanced_geothermal"]
|
||||||
snakemake.config["sector"]["enhanced_geothermal_performant"]
|
and snakemake.config["sector"]["enhanced_geothermal_performant"]
|
||||||
):
|
):
|
||||||
mask = (
|
mask = (mask := n.links.carrier == "geothermal heat") & (
|
||||||
(mask := n.links.carrier == "geothermal heat") &
|
n.links.loc[mask, "p_nom_max"] > 0.0
|
||||||
(n.links.loc[mask, "p_nom_max"] > 0.)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
saturated = n.links.loc[mask, "p_nom_max"] == n.links.loc[mask, "p_nom_opt"]
|
saturated = n.links.loc[mask, "p_nom_max"] == n.links.loc[mask, "p_nom_opt"]
|
||||||
|
Loading…
Reference in New Issue
Block a user