Update scripts/solve_network.py

Co-authored-by: Fabian Hofmann <fab.hof@gmx.de>
This commit is contained in:
lisazeyen 2023-09-30 08:14:54 +02:00 committed by GitHub
parent 9765b24c1c
commit 22fe2448a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ def add_co2_sequestration_limit(n, config, limit=200):
limit = float(o[o.find("seq") + 3 :]) * 1e6 limit = float(o[o.find("seq") + 3 :]) * 1e6
break break
if config["foresight"] == "perfect": if not n.investment_periods.empty:
periods = n.investment_periods periods = n.investment_periods
names = pd.Index([f"co2_sequestration_limit-{period}" for period in periods]) names = pd.Index([f"co2_sequestration_limit-{period}" for period in periods])
else: else: