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.
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.