Skip to content

Commit

Permalink
Differentiate aluminum recycling
Browse files Browse the repository at this point in the history
  • Loading branch information
GamzeUnlu95 committed Dec 6, 2024
1 parent 6f18190 commit 40962fe
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
8 changes: 5 additions & 3 deletions message_ix_models/model/material/data_aluminum.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def read_data_aluminum(
"""

# Ensure config is loaded, get the context
context = read_config()
ssp = get_ssp_from_context(context)
s_info = ScenarioInfo(scenario)

# Shorter access to sets configuration
Expand All @@ -55,16 +57,16 @@ def read_data_aluminum(

# Read the file
data_alu = pd.read_excel(
package_data_path("material", "aluminum", fname), sheet_name=sheet_n
package_data_path("material", "aluminum", ssp, fname), sheet_name=sheet_n
)

# Drop columns that don't contain useful information
data_alu = data_alu.drop(["Source", "Description"], axis=1)

data_alu_rel = read_rel(scenario, "aluminum", None, "aluminum_techno_economic.xlsx")
data_alu_rel = read_rel(scenario, "aluminum", ssp, "aluminum_techno_economic.xlsx")

data_aluminum_ts = read_timeseries(
scenario, "aluminum", None, "aluminum_techno_economic.xlsx"
scenario, "aluminum", ssp, "aluminum_techno_economic.xlsx"
)

# Unit conversion
Expand Down

0 comments on commit 40962fe

Please sign in to comment.