Skip to content

Commit

Permalink
update names for DSR table
Browse files Browse the repository at this point in the history
  • Loading branch information
yerbol-akhmetov committed Sep 20, 2024
1 parent ea95566 commit 536f21c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions plots/table_DSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ def DSR(n, style, sector):
opts = config["plotting"]["sector_opts"]

# define scenario namings
scenarios = {"flexible": "Widespread Renovation",
"retro_tes": "Widespread Renovation and Electrification",
"flexible-moderate": "Limited Renovation",
"rigid": "Business as Usual and Electrification"}
scenarios = {"flexible": "WIDE",
"retro_tes": "WIDE+ELEC",
"flexible-moderate": "LIMIT",
"rigid": "BAU+ELEC"}

# define heat pumps dataframe
df_DSR_heat = pd.DataFrame(
index = [scenario + dsr for scenario in scenarios.keys() for dsr in [" upward", " downward"]],
index = [nice_name + dsr for _, nice_name in scenarios.items() for dsr in [" upward", " downward"]],
columns = planning_horizons,
)
df_DSR_transport = pd.DataFrame(
index = [scenario + dsr for scenario in scenarios.keys() for dsr in [" upward", " downward"]],
index = [nice_name + dsr for _, nice_name in scenarios.items() for dsr in [" upward", " downward"]],
columns = planning_horizons,
)

Expand All @@ -76,11 +76,11 @@ def DSR(n, style, sector):
continue

# store into table
df_DSR_heat.loc[scenario + " upward", planning_horizon] = DSR(n, "upward", "heating")/1e6
df_DSR_heat.loc[scenario + " downward", planning_horizon] = -1*DSR(n, "downward", "heating")/1e6
df_DSR_heat.loc[nice_name + " upward", planning_horizon] = DSR(n, "upward", "heating")/1e6
df_DSR_heat.loc[nice_name + " downward", planning_horizon] = -1*DSR(n, "downward", "heating")/1e6

df_DSR_transport.loc[scenario + " upward", planning_horizon] = DSR(n, "upward", "transport")/1e6
df_DSR_transport.loc[scenario + " downward", planning_horizon] = DSR(n, "downward", "transport")/1e6
df_DSR_transport.loc[nice_name + " upward", planning_horizon] = DSR(n, "upward", "transport")/1e6
df_DSR_transport.loc[nice_name + " downward", planning_horizon] = DSR(n, "downward", "transport")/1e6


df_DSR_heat.index = df_DSR_heat.index + " heating"
Expand Down

0 comments on commit 536f21c

Please sign in to comment.