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
|
||||
if (
|
||||
snakemake.config["sector"]["enhanced_geothermal"] and
|
||||
snakemake.config["sector"]["enhanced_geothermal_performant"]
|
||||
snakemake.config["sector"]["enhanced_geothermal"]
|
||||
and snakemake.config["sector"]["enhanced_geothermal_performant"]
|
||||
):
|
||||
mask = (
|
||||
(mask := n.links.carrier == "geothermal heat") &
|
||||
(n.links.loc[mask, "p_nom_max"] > 0.)
|
||||
mask = (mask := n.links.carrier == "geothermal heat") & (
|
||||
n.links.loc[mask, "p_nom_max"] > 0.0
|
||||
)
|
||||
|
||||
saturated = n.links.loc[mask, "p_nom_max"] == n.links.loc[mask, "p_nom_opt"]
|
||||
|
Loading…
Reference in New Issue
Block a user