From 536f21cb43137b865dc26b09c780da9cd0266abc Mon Sep 17 00:00:00 2001 From: yerbol-akhmetov Date: Fri, 20 Sep 2024 22:27:54 +0500 Subject: [PATCH] update names for DSR table --- plots/table_DSR.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plots/table_DSR.py b/plots/table_DSR.py index 3f63a8e..37677de 100644 --- a/plots/table_DSR.py +++ b/plots/table_DSR.py @@ -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, ) @@ -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"