The results of display-results and get-measurement could diverge if some code happens between its call and get-measurement. I think this is unneeded.
I would argue that the calculation is done on the same basis of data, so that they always show the same values or not at all.
An implementation for the latter could be to not re-run the ML model but just take whatever is in the /tmp/eco-ci/energy-total.txt at this point in time
@dan-mm
The results of display-results and get-measurement could diverge if some code happens between its call and get-measurement. I think this is unneeded.
I would argue that the calculation is done on the same basis of data, so that they always show the same values or not at all.
An implementation for the latter could be to not re-run the ML model but just take whatever is in the /tmp/eco-ci/energy-total.txt at this point in time
What do you think?