message_ix_models.model.buildings.build.get_tech_groups
- message_ix_models.model.buildings.build.get_tech_groups(spec: Spec, include='commodity enduse', legacy=False) Mapping[str, Sequence[str]] [source]
Return groups of buildings technologies from spec.
These are suitable for aggregation, e.g. in data preparation or reporting.
- Parameters:
spec – The result of
get_spec()
.include (
str
orSequence
ofstr
) –May include specific values to control what is returned:
”commodity”: include keys like “resid gas”, where “gas” is a commodity, collecting technologies which consume this commodity.
”enduse”: include keys like “comm other_uses”, where “other_uses” is a buildings energy end-use, collecting technologies which represent this end-use.
legacy – if
True
, apply mapping from commodity names to labels used in legacy reporting code; e.g. “electr” becomes “elec”.