From 134d6d9f8ffb57fe50df275c4998db225ee8ec90 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Thu, 19 Oct 2023 16:26:09 +0200 Subject: [PATCH] Ensure context["model"] is available in Reporter config --- message_ix_models/report/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/message_ix_models/report/__init__.py b/message_ix_models/report/__init__.py index c1f9601517..93227900b8 100644 --- a/message_ix_models/report/__init__.py +++ b/message_ix_models/report/__init__.py @@ -364,6 +364,7 @@ def prepare_reporter( **deepcopy(context.report.genno_config), fail="raise" if has_solution else logging.NOTSET, ) + rep.configure(model=deepcopy(context.model)) # Apply callbacks for other modules which define additional reporting computations for callback in CALLBACKS: