You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change PowerDistributor to ignore components with NaN metrics
Each float metric returned from api can be float("NaN").
If that happen PowerDistributor would fail because it is
impossible to make math calcuation on NaN value.
This PR is just a quick fix of this problem.
* if power bounds are NaN, then it tries to replace them
with corresponding power bounds from adjacent component.
If these components are also NaN, then it ignores battery.
* if other metrics metrics are NaN then it ignores battery.
More sophisticated solution should be done in the future.
Signed-off-by: ela-kotulska-frequenz <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@
7
7
## Upgrading
8
8
9
9
* Remove `_soc` formula from the LogicalMeter. This feature has been moved to the BatteryPool.
10
+
* Upgrade PowerDistributingActor to handle components with the NaN metrics (#247):
11
+
* if power bounds are NaN, then it tries to replace them with corresponding power bounds from adjacent component. If these components are also NaN, then it ignores battery.
12
+
* if other metrics metrics are NaN then it ignores battery.
0 commit comments