message_ix_models.model.buildings.build.scale_and_replace

message_ix_models.model.buildings.build.scale_and_replace(scenario: Scenario, replace: dict, q_scale: AttrSeries, relations: list[str], relax: float = 0.0) Mapping[str, DataFrame][source]

Return scaled parameter data for certain technologies.

The function acts on the list of parameters below.

  • For some parameters (scale is None), data are copied.

  • For other parameters, data are scaled by multiplication with q_scale.

    • For parameters with a relative sense, e.g. growth_activity_lo, no further scaling is applied.

    • For parameters with an absolute sense, e.g. bound_activity_lo, values are additionally scaled by a “relaxation” factor of (1 + relax) for upper bounds or (1 - relax) for lower bounds. Setting relax to 0 (the default) disables this behaviour.

These operations are applied to all data for which the technology IDs appears in replace["technology"].

Finally, replace is applied to optionally replace technology IDs or IDs for other dimensions.

Returns:

Keys are parameter names;

Return type:

dict of (str -> .DataFrame)