TImeseries that can be hierarchical with constraints between them that should be conserved. For example, Emissions|CO2 should be the sum of Emissions|CO2|Anthropogenic + Emissions|CO2|LULUCF. Typically we have used | as the hierarchy separator.
Previously this required manual cascading changes which is brittle and error prone.
Changes any one of the timeseries should be propagated to the other timeseries to ensure that the constraint holds.
Requirements
Recalculate sums on change
Be able to traverse to parent and child timeseries
Cast to a TImeSeries and ref as a timeseries
Questions:
Are any other constraints other than "sum" needed?
Do we need to support more dimensions? ( I think that a 4 box is a different problem/extension as it needs to incorporate weighing schemes)
Should this always be the common pattern when using |
Definition of "done"
Additional context
This could be done using a graph as part of the timeseries collection iff we follow some simple hierarchy rules. The edge weights could be used to denote weighted sums (e.g. CO2-equiv emissions or 4-box regions)
The problem
TImeseries that can be hierarchical with constraints between them that should be conserved. For example,
Emissions|CO2
should be the sum ofEmissions|CO2|Anthropogenic
+Emissions|CO2|LULUCF
. Typically we have used|
as the hierarchy separator.Previously this required manual cascading changes which is brittle and error prone. Changes any one of the timeseries should be propagated to the other timeseries to ensure that the constraint holds.
Requirements
Questions:
|
Definition of "done"
Additional context
This could be done using a graph as part of the timeseries collection iff we follow some simple hierarchy rules. The edge weights could be used to denote weighted sums (e.g. CO2-equiv emissions or 4-box regions)