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:
Thread
Methods
Initializes and configures the state estimator.
add_on_element_change_callback
add_on_element_update_callback
breadth_search
clear_net
drop_nan_measurements
drop_zero_injection_bus_measurements
element_is_closed
estimate_state
fix_disconnected_measurements
get_adjacent_busses
get_connected_buses
get_disconnected_buses
get_power_grid_model
get_zero_injection_busses
measure
Method representing the thread's activity.
set_estimation_grid_value
stop
trigger_on_element_change
trigger_on_element_update
Attributes
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.