Skip to content

Commit

Permalink
small fix to consider type of option va_degree in runpp (_run_newton_…
Browse files Browse the repository at this point in the history
…raphson)
  • Loading branch information
dlohmeier committed Mar 20, 2019
1 parent eac2489 commit 5d2f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandapower/pf/run_newton_raphson_pf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _run_newton_raphson_pf(ppci, options):


t0 = time()
if options["init_va_degree"] == "dc":
if isinstance(options["init_va_degree"], str) and options["init_va_degree"] == "dc":
ppci = _run_dc_pf(ppci)
if options["enforce_q_lims"]:
ppci, success, iterations, bus, gen, branch = _run_ac_pf_with_qlims_enforced(ppci, options)
Expand Down

0 comments on commit 5d2f9b0

Please sign in to comment.