@@ -54,15 +54,15 @@ def run_voltage_monitoring(self, network: Network, rao_result: RaoResult, load_f
54
54
"""
55
55
p = load_flow_parameters ._to_c_parameters () if load_flow_parameters is not None else _pypowsybl .LoadFlowParameters ()
56
56
57
- rao_result = _pypowsybl .run_voltage_monitoring (network ._handle , rao_result ._handle_result , self ._handle , p , provider_str )
57
+ result_handle = _pypowsybl .run_voltage_monitoring (network ._handle , rao_result ._handle_result , self ._handle , p , provider_str )
58
58
crac_handle = _pypowsybl .get_crac (self ._handle )
59
- return RaoResult (rao_result , crac_handle )
59
+ return RaoResult (result_handle , crac_handle )
60
60
61
61
def run_angle_monitoring (self , network : Network , rao_result : RaoResult , load_flow_parameters : pypowsybl .loadflow .Parameters = None , provider_str : str = '' ) -> RaoResult :
62
62
"""
63
63
"""
64
64
p = load_flow_parameters ._to_c_parameters () if load_flow_parameters is not None else _pypowsybl .LoadFlowParameters ()
65
65
66
- rao_result = _pypowsybl .run_angle_monitoring (network ._handle , rao_result ._handle_result , self ._handle , p , provider_str )
66
+ result_handle = _pypowsybl .run_angle_monitoring (network ._handle , rao_result ._handle_result , self ._handle , p , provider_str )
67
67
crac_handle = _pypowsybl .get_crac (self ._handle )
68
- return RaoResult (rao_result , crac_handle )
68
+ return RaoResult (result_handle , crac_handle )
0 commit comments