Update prepare_sector_network.py

update build_carbon_budget to use budget estimation from 2020 onwards
This commit is contained in:
martavp 2021-08-24 18:48:20 +02:00 committed by GitHub
parent 5b9f64354f
commit 919c9d8b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,9 +103,6 @@ def build_carbon_budget(o, fn):
#emissions at the beginning of the path (last year available 2018)
e_0 = co2_emissions_year(countries, opts, year=2018)
#emissions in 2019 and 2020 assumed equal to 2018 and substracted
carbon_budget -= 2 * e_0
planning_horizons = snakemake.config['scenario']['planning_horizons']
t_0 = planning_horizons[0]