Currently, fields that are loss curves are declared as ValueCurve types. Unlike CostCurve types, those objects don't have units data attached to them. Hence the units are currently ambiguous.
This is causing actual issues. psi_library.jl:1829-1957 in PSB builds a loss curve on an InterconnectingConverter with the y axis in system base. Meanwhile, code in an open POM PR assumes that same curve has its y axis in device base...
Potential solutions:
- Eliminate the ambiguity by adding units somewhere.
a. Add units to ValueCurve.
b. Introduce some other curve type that carries units, but isn't a CostCurve.
c. Just make them CostCurves, even though losses aren't costs.
- Decide on some fixed units and document that choice prominently.
edit: here I'm talking about the IS4/psy6 branches.
Currently, fields that are loss curves are declared as
ValueCurvetypes. UnlikeCostCurvetypes, those objects don't have units data attached to them. Hence the units are currently ambiguous.This is causing actual issues.
psi_library.jl:1829-1957in PSB builds a loss curve on anInterconnectingConverterwith the y axis in system base. Meanwhile, code in an open POM PR assumes that same curve has its y axis in device base...Potential solutions:
a. Add units to
ValueCurve.b. Introduce some other curve type that carries units, but isn't a
CostCurve.c. Just make them
CostCurves, even though losses aren't costs.edit: here I'm talking about the
IS4/psy6branches.