diff --git a/edisgo/edisgo.py b/edisgo/edisgo.py index 28b3d4ba..360f8118 100755 --- a/edisgo/edisgo.py +++ b/edisgo/edisgo.py @@ -1303,20 +1303,20 @@ def reinforce( reinforce MV/LV stations for LV worst-cases. Default: False. num_steps_loading : int - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be + In case `reduced_analysis` is set to True, this parameter can be used to specify the number of most critical overloading events to consider. If None, `percentage` is used. Default: None. num_steps_voltage : int - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be + In case `reduced_analysis` is set to True, this parameter can be used to specify the number of most critical voltage issues to select. If None, `percentage` is used. Default: None. percentage : float - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be + In case `reduced_analysis` is set to True, this parameter can be used to specify the percentage of most critical time steps to select. The default is 1.0, in which case all most critical time steps are selected. Default: 1.0. use_troubleshooting_mode : bool - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be + In case `reduced_analysis` is set to True, this parameter can be used to specify how to handle non-convergence issues in the power flow analysis. If set to True, non-convergence issues are tried to be circumvented by reducing load and feed-in until the power flow converges. @@ -1409,6 +1409,7 @@ def reinforce( func( edisgo_obj, + reduced_analysis=reduced_analysis, max_while_iterations=max_while_iterations, split_voltage_band=split_voltage_band, without_generator_import=without_generator_import, diff --git a/edisgo/flex_opt/reinforce_grid.py b/edisgo/flex_opt/reinforce_grid.py index 27fe6ff2..f7ff6513 100644 --- a/edisgo/flex_opt/reinforce_grid.py +++ b/edisgo/flex_opt/reinforce_grid.py @@ -89,20 +89,20 @@ def reinforce_grid( reinforce MV/LV stations for LV worst-cases. Default: False. num_steps_loading : int - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be used + In case `reduced_analysis` is set to True, this parameter can be used to specify the number of most critical overloading events to consider. If None, `percentage` is used. Default: None. num_steps_voltage : int - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be used + In case `reduced_analysis` is set to True, this parameter can be used to specify the number of most critical voltage issues to select. If None, `percentage` is used. Default: None. percentage : float - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be used + In case `reduced_analysis` is set to True, this parameter can be used to specify the percentage of most critical time steps to select. The default is 1.0, in which case all most critical time steps are selected. Default: 1.0. use_troubleshooting_mode : bool - In case `timesteps_pfa` is set to 'reduced_analysis', this parameter can be used + In case `reduced_analysis` is set to True, this parameter can be used to specify how to handle non-convergence issues in the power flow analysis. See parameter `use_troubleshooting_mode` in function :attr:`~.EDisGo.reinforce` for more information. Default: True. diff --git a/tests/flex_opt/test_reinforce_grid.py b/tests/flex_opt/test_reinforce_grid.py index dd4ca4cb..ad1b296a 100644 --- a/tests/flex_opt/test_reinforce_grid.py +++ b/tests/flex_opt/test_reinforce_grid.py @@ -58,7 +58,7 @@ def test_reinforce_grid(self): # test reduced analysis res_reduced = reinforce_grid( edisgo=copy.deepcopy(self.edisgo), - timesteps_pfa="reduced_analysis", + reduced_analysis=True, num_steps_loading=4, ) assert_frame_equal(