[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a8a5236a23
commit
d2624f8070
@ -655,11 +655,13 @@ def solve_network(n, config, solving, opts="", **kwargs):
|
|||||||
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"]
|
||||||
|
|
||||||
if saturated.any():
|
if saturated.any():
|
||||||
logger.warning((
|
logger.warning(
|
||||||
|
(
|
||||||
"Potential for enhanced geothermal heat is saturated at bus(es):\n"
|
"Potential for enhanced geothermal heat is saturated at bus(es):\n"
|
||||||
f"{', '.join(n.links.loc[saturated.loc[saturated.astype(bool)].index, 'location'].tolist())}.\n"
|
f"{', '.join(n.links.loc[saturated.loc[saturated.astype(bool)].index, 'location'].tolist())}.\n"
|
||||||
"Consider setting config['sector']['enhanced_geothermal_performant'] to False."
|
"Consider setting config['sector']['enhanced_geothermal_performant'] to False."
|
||||||
))
|
)
|
||||||
|
)
|
||||||
|
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user