AWeber-Imbi / imbi

An operational management platform for medium to large environments
BSD 3-Clause "New" or "Revised" License
2 stars 12 forks source link

Some project types cannot achieve 100 project score #70

Closed in-op closed 1 year ago

in-op commented 2 years ago

Some projects with all facts filled out add up to a project score of 99

Screen Shot 2022-08-15 at 2 05 27 PM

I believe this is due to the project score function's FOR loop accumulating small rounding errors, because fact scores round to 2 decimal places but everything else rounds to 5. Hoisting the division by total_weight out of the for loop and making it a single, final line should fix this problem and is mathematically equivalent.

in-op commented 1 year ago

This was fixed with https://github.com/AWeber-Imbi/imbi-schema/pull/10