Skip to content

Commit

Permalink
Add zeros for missing entries - aluminium
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed May 30, 2024
1 parent b9e881c commit 490df63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/build_industry_demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ def match_technology(df):
countries_geo = geo_locs.index.unique().intersection(countries)
geo_locs = match_technology(geo_locs).loc[countries_geo]

aluminium_year = snakemake.config["demand_data"]["aluminium_year"]
AL = read_csv_nafix("data/AL_production.csv", index_col=0)
AL_prod_tom = AL[AL.Year == snakemake.config["demand_data"]["aluminium_year"]][
AL_prod_tom = AL.query("Year == @aluminium_year and index in @countries_geo")[
"production[ktons/a]"
].loc[countries_geo]
].reindex(countries_geo, fill_value=0.0)
AL_emissions = AL_prod_tom * emission_factors["non-ferrous metals"]

Steel_emissions = (
Expand Down

0 comments on commit 490df63

Please sign in to comment.