Skip to content

Commit

Permalink
correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lisazeyen committed Mar 7, 2024
1 parent d2f10f7 commit 573cad1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/add_existing_baseyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def add_existing_land_transport(baseyear, options):
df["build_year"] = build_year
df["p_nom"] = share * p_nom
df["p_nom_extendable"] = False
df.rename(index=lambda x: x + f"-{build_year}", inplace=True)
df.rename(index=lambda x: x.replace(f"-{baseyear}", f"-{build_year}"),
inplace=True)

n.madd(
"Link",
Expand All @@ -101,7 +102,8 @@ def add_existing_land_transport(baseyear, options):
p_max_pu=p_max_pu,
lifetime=df.lifetime,
)


n.links.loc[ice_i, "p_nom"] = 0

def add_existing_renewables(df_agg):
"""
Expand Down

0 comments on commit 573cad1

Please sign in to comment.