Skip to content

Commit 8706288

Browse files
committed
Add general report key "all::iamc"
1 parent e94b6c8 commit 8706288

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

message_ix_models/report/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ def prepare_reporter(
389389
)
390390
rep.configure(model=deepcopy(context.model))
391391

392+
# Add a placeholder task to concatenate IAMC-structured data
393+
rep.add("all::iamc", "concat")
394+
392395
# Apply callbacks for other modules which define additional reporting computations
393396
for callback in context.report.iter_callbacks():
394397
callback(rep, context)

message_ix_models/report/compat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ def full(name: str) -> Key:
429429
info = dict(variable="transport emissions", base=k1.drop("h", "m", "yv"), var=[var])
430430
iamc(rep, info)
431431

432+
# Append to the "all::iamc" task
433+
# TODO Use a helper function for this
434+
rep.graph["all::iamc"] += ("transport emissions::iamc",)
435+
432436
# TODO use store_ts() to store on scenario
433437

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

0 commit comments

Comments
 (0)