Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion message_ix_models/tools/bilateralize/bare_to_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def bare_to_scenario(
for c in covered_tec
if c not in ["crudeoil_piped", "foil_piped", "loil_piped"]
]:
add_tec = tec_config[tec][tec + "_trade"]["trade_technology"] + "_exp"
add_tec = tec_config[tec][tec + "_trade"]["trade_technology"]
hist_tec[tec] = add_tec

for tec in hist_tec.keys():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,12 @@ def build_historical_activity(
project_name=project_name,
config_name=config_name,
)
outdf = (
outdf.groupby(["node_loc", "technology", "year_act", "mode", "time"])["value"]
.sum()
.reset_index()
)

outdf["unit"] = "GWa"

return outdf.drop_duplicates()
Expand Down
Loading