Skip to content

Commit d997f83

Browse files
committed
Add general report key "all::iamc"
1 parent f1cbfbb commit d997f83

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

message_ix_models/report/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ def prepare_reporter(
369369
)
370370
rep.configure(model=deepcopy(context.model))
371371

372+
# Add a placeholder task to concatenate IAMC-structured data
373+
rep.add("all::iamc", "concat")
374+
372375
# Apply callbacks for other modules which define additional reporting computations
373376
for callback in chain(CALLBACKS, context.report.iter_callbacks()):
374377
callback(rep, context)

message_ix_models/report/compat.py

+4
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ def full(name: str) -> Key:
416416
info = dict(variable="transport emissions", base=k1.drop("h", "m", "yv"), var=[var])
417417
iamc(rep, info)
418418

419+
# Append to the "all::iamc" task
420+
# TODO Use a helper function for this
421+
rep.graph["all::iamc"] += ("transport emissions::iamc",)
422+
419423
# TODO use store_ts() to store on scenario
420424

421425
log.info(f"Added {len(rep.graph) - N} keys")

0 commit comments

Comments
 (0)