Skip to content

Commit

Permalink
More changes to change how reduced analysis is set
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 22, 2023
1 parent 475a2f3 commit b7886fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions edisgo/edisgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions edisgo/flex_opt/reinforce_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/flex_opt/test_reinforce_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b7886fc

Please sign in to comment.