Skip to content

Commit 75bd431

Browse files
Change zero to nan for lack of data
Signed-off-by: Flora <[email protected]>
1 parent e927deb commit 75bd431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/reporting/_reporting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def cumulative_energy(
114114
elif last_value_diff < 0:
115115
production += last_value_diff
116116
else:
117-
consumption = production = 0.0
117+
consumption = production = float("nan")
118118

119119
return CumulativeEnergy(
120120
start_time=start_time,

0 commit comments

Comments
 (0)