We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 931627c + c67fa1d commit 6a2ab86Copy full SHA for 6a2ab86
RELEASE_NOTES.md
@@ -14,4 +14,4 @@
14
15
## Bug Fixes
16
17
-<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
+* Change 0.0 to nan if there is no data available
src/frequenz/reporting/_reporting.py
@@ -114,7 +114,7 @@ async def cumulative_energy(
114
elif last_value_diff < 0:
115
production += last_value_diff
116
else:
117
- consumption = production = 0.0
+ consumption = production = float("nan")
118
119
return CumulativeEnergy(
120
start_time=start_time,
0 commit comments