Skip to content

Commit

Permalink
add ["ac"] to pm in add_pm_options from net._options
Browse files Browse the repository at this point in the history
  • Loading branch information
rbolgaryn committed Mar 23, 2022
1 parent 486c198 commit 9de593e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandapower/converter/powermodels/to_pm.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def convert_to_pm_structure(net, opf_flow_lim="S"):
pm = ppc_to_pm(net, ppci)
pm = add_pm_options(pm, net)
pm = add_params_to_pm(net, pm)
pm["ac"] = True
net._pm = pm
return net, pm, ppc, ppci

Expand Down Expand Up @@ -419,6 +418,7 @@ def add_pm_options(pm, net):
np.inf, np.inf, np.inf
pm["correct_pm_network_data"] = net._options["correct_pm_network_data"]
pm["silence"] = net._options["silence"]
pm["ac"] = net._options["ac"]
return pm


Expand Down

0 comments on commit 9de593e

Please sign in to comment.