Skip to content

Commit

Permalink
Merge branch 'develop' into plotting_adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohmeier authored Jan 19, 2021
2 parents 237160d + a861338 commit 91a55d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandapower/control/run_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def prepare_run_ctrl(net, ctrl_variables, **kwargs):
if ctrl_variables is None:
ctrl_variables = ctrl_variables_default(net)

if ('continue_on_divergence') in kwargs and (ctrl_var is None):
if ('continue_on_divergence') in kwargs and (ctrl_var is None or 'continue_on_divergence' not in ctrl_var.keys()):
div = kwargs.pop('continue_on_divergence')
ctrl_variables['continue_on_divergence'] = div
if ('check_each_level') in kwargs and (ctrl_var is None):
if ('check_each_level') in kwargs and (ctrl_var is None or 'continue_on_divergence' not in ctrl_var.keys()):
check = kwargs.pop('check_each_level')
ctrl_variables['check_each_level'] = check

Expand Down

0 comments on commit 91a55d7

Please sign in to comment.