PandaPowerStateEstimator#
- class wattson.powergrid.wrapper.panda_power_state_estimator.PandaPowerStateEstimator(power_grid_model: PandaPowerGridModel, update_required: Event | None, estimation_done_callback: Callable, estimation_started_callback: Callable, **kwargs: Any)#
Bases:
ThreadMethods
Initializes and configures the state estimator.
add_on_element_change_callbackadd_on_element_update_callbackbreadth_searchclear_netdrop_nan_measurementsdrop_zero_injection_bus_measurementselement_is_closedestimate_statefix_disconnected_measurementsget_adjacent_bussesget_connected_busesget_disconnected_busesget_power_grid_modelget_zero_injection_bussesmeasureMethod representing the thread's activity.
set_estimation_grid_valuestoptrigger_on_element_changetrigger_on_element_updateAttributes
global_estimation_lock- __init__(power_grid_model: PandaPowerGridModel, update_required: Event | None, estimation_done_callback: Callable, estimation_started_callback: Callable, **kwargs: Any)#
Initializes and configures the state estimator.
- Parameters:
power_grid_model (PandaPowerGridModel) – The (PowerOwl) PandaPowerGridModel
update_required (Optional[Event]) – The event to use for triggering a new estimation iteration. Optional.
estimation_done_callback (Callable) – A callback to call every time the estimation is completed (successful or not)
estimation_started_callback (Callable) – A callback to call every time a new estimation iteration is started.
**kwargs (Any) –
- run() None#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.