Skip to content

Commit

Permalink
Ensure context["model"] is available in Reporter config
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Oct 19, 2023
1 parent dfca21f commit 134d6d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions message_ix_models/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 134d6d9

Please sign in to comment.