This commit is contained in:
LukasFrankenQ 2023-09-25 15:16:31 +01:00
commit a8a5236a23

View File

@ -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"]