Skip to content

Commit

Permalink
remove breakpoint, remove FOM adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
lisazeyen committed Feb 15, 2024
1 parent 595ec7e commit 155ddea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/compile_cost_assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def adjust_for_inflation(costs, techs, ref_year, col):
"""

inflation = (1 + snakemake.config['rate_inflation'])**(ref_year - snakemake.config['eur_year'])
paras = ["investment", "VOM", "fixed", "fuel"]
paras = ["investment", "VOM", "fuel"]
filter_i = costs.index.get_level_values(0).isin(techs) & costs.index.get_level_values(1).isin(paras)

costs.loc[filter_i, col] = costs.loc[filter_i, col].div(inflation.loc[filter_i], axis=0)
Expand Down Expand Up @@ -2275,7 +2275,6 @@ def geometric_series(nominator, denominator=1, number_of_terms=1, start=1):
costs_tot = unify_diw(costs_tot)
costs_tot.drop("fixed", level=1, inplace=True)

breakpoint()
# adjust for inflation
techs = costs_tot.index.get_level_values(0).unique()
costs_tot = adjust_for_inflation(data, techs, costs_tot.currency_year, years)
Expand Down

0 comments on commit 155ddea

Please sign in to comment.