Closed ElliottMess closed 2 years ago
While investigating this issue, it was found that the absence of transformation of fh
produced inacurate results since the introduction of the function to billionaire.
Indeed the calculation of UHC contribution to the billion work on transformed value. As fh
was not transformed properly, the contribution were reversed. This had no impact on the dashboard as the fh
contributions are not displayed and that the uhc_sm
indicator was always calculated correctly.
pull requet #42 fixes the problem. Waiting for the integration of #38 and #40 to integrate into main.
Solved by #42
fh
is not inverted by transform_uhc_data when it should be. This has no impact on calculations ascalculate_uhc_billion
inverts it before use.For clarity in the code, the indicator should be inverted in
transform_uhc_billion
andcalculate_uhc_billion
should be modified.