NREL / infrasys

Data store for components and time series in support of Python-based modeling packages
https://nrel.github.io/infrasys/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Add ability to fully represent units within cost objects, including `FunctionData` #53

Open GabrielKS opened 1 week ago

GabrielKS commented 1 week ago

Right now, only one FunctionData field can be a pint.Quantity. It would be useful for the entire cost function API to be compatible with Pint units, including all FunctionData fields.

To go one step further, we might even validate the units of the FunctionData fields in relation to each other: for instance, for QuadraticFunctionData, there must exist some units Y and X such that constant_term has units Y, proportional_term has units Y/X, and quadratic_term has units Y/X^2. This is less important though.