Skip to content

Commit

Permalink
revert changes of energy storage database
Browse files Browse the repository at this point in the history
  • Loading branch information
lisazeyen committed Feb 6, 2024
1 parent 9bd003e commit 9e092c3
Show file tree
Hide file tree
Showing 8 changed files with 2,245 additions and 2,248 deletions.
640 changes: 320 additions & 320 deletions outputs/costs_2020.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2025.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2030.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2035.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2040.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2045.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions outputs/costs_2050.csv

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions scripts/compile_cost_assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,14 +1914,11 @@ def add_energy_storage_database(costs, data_year):
agg = df.loc[power_filter].groupby(["technology", "year"]).sum(numeric_only=True)
charger_investment_filter = charger_filter & (df.technology==tech) & (df.parameter=="investment")
discharger_investment_filter = discharger_filter & (df.technology==tech) & (df.parameter=="investment")
for a in [2021, 2030]:
df_year = (df.year == a)
df.loc[charger_investment_filter & df_year, "value"] += agg.loc[(tech, a)]/2
df.loc[discharger_investment_filter & df_year, "value"] += agg.loc[(tech, a)]/2

index = df.loc[df["technology_type"]!="nan"].index
df.technology_type.replace("nan", np.nan, inplace=True)
df.loc[index,"technology"] = df.loc[index, "technology"] + "-" + df.loc[index, "technology_type"]
df.loc[charger_investment_filter & df.year==2021, "value"] += agg.loc[(tech, 2021)]/2
df.loc[charger_investment_filter & df.year==2030, "value"] += agg.loc[(tech, 2030)]/2
df.loc[discharger_investment_filter & df.year==2021, "value"] += agg.loc[(tech, 2021)]/2
df.loc[discharger_investment_filter & df.year==2030, "value"] += agg.loc[(tech, 2030)]/2
df.loc[:,"technology"] = df["technology"] + "-" + df["technology_type"]

# aggregate technology_type and unit
df = df.groupby(["technology", "unit", "year"]).agg({
Expand Down

0 comments on commit 9e092c3

Please sign in to comment.