You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation TryFrom<RiverSplitWithGaugeNodeV1> for RiverSplitWithGaugeNode is not correct. The representation of the factors is the not the same between v1.x and v2.x of Pywr. v2.x requires factors as a proportion of the main flow. Whereas v1.x requires specifying the factors as ratios.
Add a conversion function for the factors on RiverSplitWithGauge.
The factors have changed in this implementation and require
conversion from ratios to proportions. This is only possible
if they existing factors are all constants.
Fixes#241.
The implementation
TryFrom<RiverSplitWithGaugeNodeV1> for RiverSplitWithGaugeNode
is not correct. The representation of the factors is the not the same between v1.x and v2.x of Pywr. v2.x requires factors as a proportion of the main flow. Whereas v1.x requires specifying the factors as ratios.pywr-next/pywr-schema/src/nodes/river_split_with_gauge.rs
Line 220 in 745d6d0
Possible solutions:
ConversionError
stating these factors cannot be converted automatically,The text was updated successfully, but these errors were encountered: