Skip to content

Commit

Permalink
Exclude pre-firstmodelyear years from material rep
Browse files Browse the repository at this point in the history
  • Loading branch information
macflo8 authored and khaeru committed Dec 16, 2024
1 parent b203380 commit 88ffaec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion message_ix_models/model/material/report/run_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def split_fe_other(
"meth_exp",
"meth_imp",
"meth_ind_fs",
"furnace_methanol_refining"
"furnace_methanol_refining",
]
)
for c, full_name in zip(
Expand Down Expand Up @@ -708,6 +708,10 @@ def run(scenario, upload_ts=False, region=False):
else:
py_df.aggregate_region(py_df.variable, append=True)
py_df.filter(variable="Share*", keep=False, inplace=True)
py_df.filter(
year=[i for i in scenario.set("year") if i >= scenario.firstmodelyear],
inplace=True,
)
if upload_ts:
scenario.add_timeseries(py_df.timeseries())
return py_df

0 comments on commit 88ffaec

Please sign in to comment.