BreakingBytes / simkit

Model Simulation Framework
http://breakingbytes.github.io/simkit/
BSD 3-Clause "New" or "Revised" License
27 stars 16 forks source link

units of outputs aren't used for static calculations #114

Open mikofski opened 7 years ago

mikofski commented 7 years ago

In a static calculation, even if the units of the outputs are specified, the return values will not be converted to those units.

It does work for dynamic calculations because in Pint when you index into an array of one unit type, it converts the assigned value to the correct units if they are not the same, or will raise an exception if they units are not compatible.