This unifies the schema OutputMetric and DynamicFloatValue to a single schema Metric enum. This simplifies some of the loading and removes the heavily nested enum.
It also implements an OutputMetric in core that is used to hold additional information regarding the origin of a metric in the schema. This is useful for ensuring output data aligns with the schema model definition rather than the internal details of core.
Outstanding items:
[ ] Do something similar with DynamicIndexValue
[ ] I'm not sure I like the naming of "pywr-type" and "pywr-subtype" attributes, but naming things is hard.
This unifies the schema
OutputMetric
andDynamicFloatValue
to a single schemaMetric
enum. This simplifies some of the loading and removes the heavily nested enum.It also implements an
OutputMetric
in core that is used to hold additional information regarding the origin of a metric in the schema. This is useful for ensuring output data aligns with the schema model definition rather than the internal details of core.Outstanding items:
DynamicIndexValue