Skip to content

Commit

Permalink
Fix adding parameter to function
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 27, 2023
1 parent ebd8172 commit 56dddb9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions edisgo/flex_opt/reinforce_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,12 @@ def enhanced_reinforce_grid(
separation_threshold : int or float
Overloading threshold for LV grid separation. If the overloading is higher than
the threshold times the total nominal apparent power of the MV/LV transformer(s)
the grid is separated.
the grid is separated. Default: 2.
use_standard_line_type : bool
Only used when `separate_lv_grids` is set to True. If use_standard_line_type is
True, standard line type is used to connect bus, where feeder is split, to
the station. If False, the same line type and number of parallel lines as
the original line is used. Default: True.
kwargs : dict
Keyword arguments can be all parameters of function
:func:`edisgo.flex_opt.reinforce_grid.reinforce_grid`, except
Expand All @@ -900,7 +905,11 @@ def enhanced_reinforce_grid(
"Separating lv grids. Set the parameter 'separate_lv_grids' to False if "
"this is not desired."
)
run_separate_lv_grids(edisgo_object, threshold=separation_threshold)
run_separate_lv_grids(
edisgo_object,
threshold=separation_threshold,
use_standard_line_type=use_standard_line_type,
)

logger.info("Run initial grid reinforcement for single LV grids.")
for lv_grid in list(edisgo_object.topology.mv_grid.lv_grids):
Expand Down

0 comments on commit 56dddb9

Please sign in to comment.