-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
part:power-managementAffects the management of battery power and distributionAffects the management of battery power and distributionpriority:highAddress this as soon as possibleAddress this as soon as possibletype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Milestone
Description
What's needed?
As it was discussed, every component metric received from microgrid can be NaN. In that case metrics are independent from each: if one metric is NaN, then others can be correct float values.
PowerDistributingActor is ignoring components with NaN metrics, now.
But when we do gap_discharge it should replace those metrics with the latest not-NaN values and use them.
Proposed solution
- Cache latest non-NaN value as use them if current metric is NaN and we do gap_discharge.
- Create one more flag in the PowerDistributingActor request (src/frequenz/sdk/actor/power_distributing/request.py) :
gap_discharge. Actor should set it toTrue, if he is doinggap_discharge. This should prevent from using cached values in the normalset_poweroperation. It should also simplify decision making process (less branches).
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
part:power-managementAffects the management of battery power and distributionAffects the management of battery power and distributionpriority:highAddress this as soon as possibleAddress this as soon as possibletype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Type
Projects
Status
Done