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

bug: pint unit definitions are not capable of performing multiplications #24

Closed pesap closed 6 months ago

pesap commented 6 months ago

It looks like the __new__ method is preventing us to multiply ActivePower * Time to obtain energy. The reason is that the __new__ method of BaseQuantity is checking unit consistency even on the result multiplication.