Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yerbol-akhmetov committed Sep 20, 2024
1 parent 69432ba commit ea95566
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plots/plot_heat_tech_ratio.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def plot_capacities(capacities_df, clusters, planning_horizon, plot_width=7):
x_ticks = list(df.columns)
if planning_horizon in ["2040", "2050"] and "Limited\nRenovation" in x_ticks:
# replace name for Limited Renovation scenario for 2030 to be LROH
x_ticks[x_ticks.index("Limited\nRenovation")] = "Limited\nRenovation&\nElectrification"
x_ticks[x_ticks.index("Limited\nRenovation")] = "Limited\nRenovation &\nElectrification"

ax.set_xticklabels(x_ticks)

Expand Down Expand Up @@ -122,9 +122,9 @@ def fill_table_df(df, planning_horizon, scenarios, values):

# define scenario namings
scenarios = {"flexible": "Widespread\nRenovation",
"retro_tes": "Widespread\nRenovation&\nElectrification",
"retro_tes": "Widespread\nRenovation &\nElectrification",
"flexible-moderate": "Limited\nRenovation",
"rigid": "Business\nas Usual&\nElectrification"}
"rigid": "Business\nas Usual &\nElectrification"}

# initialize df for storing table information
table_cap_df = define_table_df(scenarios)
Expand All @@ -135,12 +135,12 @@ def fill_table_df(df, planning_horizon, scenarios, values):

# if planning_horizon is 2020
if planning_horizon == BAU_HORIZON:
scenarios = {"BAU": "BAU"}
scenarios = {"BAU": "BASE 2023"}
else:
scenarios = {"flexible": "Widespread\nRenovation",
"retro_tes": "Widespread\nRenovation &\nElectrification",
"flexible-moderate": "Limited\nRenovation",
"rigid": "Business\nas Usual&\nElectrification"}
"rigid": "Business\nas Usual &\nElectrification"}

# move to submodules/pypsa-eur
change_path_to_pypsa_eur()
Expand Down

0 comments on commit ea95566

Please sign in to comment.