Closed kaminetzky closed 3 years ago
Whenever a counter overflows, pyJoules will report a negative energy measurement.
As a quick fix, I propose adding the corresponding max_energy_range_uj to negative energy measurements.
max_energy_range_uj
If a counter overflows twice during a single energy measurement, the reported energy will be max_energy_range_uj less than the expected value.
I also added this information to the README.
Whenever a counter overflows, pyJoules will report a negative energy measurement.
As a quick fix, I propose adding the corresponding
max_energy_range_uj
to negative energy measurements.If a counter overflows twice during a single energy measurement, the reported energy will be
max_energy_range_uj
less than the expected value.I also added this information to the README.