pywr / pywr-next

An experimental repository exploring ideas for a major revision to Pywr using Rust as a backend.
6 stars 4 forks source link

Refactor of schema metrics #158

Closed jetuk closed 5 months ago

jetuk commented 5 months ago

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: