Skip to content

Commit

Permalink
bug fix for reference year<2018 for ammonia
Browse files Browse the repository at this point in the history
  • Loading branch information
lisazeyen authored Aug 16, 2024
1 parent ad100c4 commit 885a881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_industry_sector_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def chemicals_industry():

# subtract ammonia energy demand (in ktNH3/a)
ammonia = pd.read_csv(snakemake.input.ammonia_production, index_col=0)
ammonia_total = ammonia.loc[ammonia.index.intersection(eu27), str(year)].sum()
ammonia_total = ammonia.loc[ammonia.index.intersection(eu27), str(max(2018, year))].sum()
df.loc["methane", sector] -= ammonia_total * params["MWh_CH4_per_tNH3_SMR"]
df.loc["elec", sector] -= ammonia_total * params["MWh_elec_per_tNH3_SMR"]

Expand Down

0 comments on commit 885a881

Please sign in to comment.