Closed korsbakken closed 2 months ago
There is already an issue in the nomenclature repo, see https://github.com/IAMconsortium/nomenclature/issues/342. Just too many things on the to-do list, PR to get started would be very much appreciated.
I have submitted a PR in the nomenclature repository now, PR 352.
Closing as implemented in the nomenclature package.
This is really an issue with
nomenclature
and probably should be solved there, but affects a recent addition to this repo. Thecomponents
property (for aggregation checking) that was added to theEmissions|{Level-1 Species}
code in emissions.yaml don't work with nomenclature:https://github.com/IAMconsortium/common-definitions/blob/013295a0257bf38210febc77a4a9016dcfbc25e4/definitions/variable/emissions/emissions.yaml#L5-L13
The problem is that the tag
{Level-1 Species}
does not get replaced with the species name when the yaml is parsed by nomenclature. Instead, e.g., the.flattened_dict
ofEmissions|CO2
looks like this`:I think the issue here is that
nomenclature
only expands tags in attributes that are plainstr
objects. It doesn't descend into list attributes. Which probably should be fixed. I will try to file an issue in thenomenclature
repository later today.