message_ix_models.model.buildings.build.adapt_emission_factors
- message_ix_models.model.buildings.build.adapt_emission_factors(data: MutableParameterData) None [source]
Adapt
relation_activity
values in data that represent emission factors.In MESSAGEix-GLOBIOM,
relation_activity
entries for, for instance, r=CO_Emission are computed as (emission factor for fuel, species) × (input efficiency of technology consuming the fuel). Because the MESSAGE-Buildings representation sets the latter to 1.0, the relation_activity entries must be recomputed.This function updates the values in
data["relation_activity"]
, assuming thatdata["input"]
contains the original (base model, MESSAGEix-GLOBIOM) input efficiencies. Then it setsdata["input"]["value"]
to 1.0.Todo
When available in
message_ix_models
, simply read the values for each (fuel, species) from a file, rather than performing this calculation.