Skip to content

Commit

Permalink
parallel transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurner committed Mar 21, 2017
1 parent 0c16ddf commit 1ae56ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandapower/results_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _get_trafo_results(net, ppc, s_ft, i_ft):
else:
raise ValueError(
"Unknown transformer loading parameter %s - choose 'current' or 'power'" % trafo_loading)
net["res_trafo"]["loading_percent"] = ld_trafo
net["res_trafo"]["loading_percent"] = ld_trafo / net["trafo"]["parallel"].values
net["res_trafo"].index = net["trafo"].index


Expand Down Expand Up @@ -154,7 +154,7 @@ def _get_trafo3w_results(net, ppc, s_ft, i_ft):
else:
raise ValueError(
"Unknown transformer loading parameter %s - choose 'current' or 'power'" % trafo_loading)
net["res_trafo3w"]["loading_percent"] = ld_trafo
net["res_trafo3w"]["loading_percent"] = ld_trafo
net["res_trafo3w"].index = net["trafo3w"].index


Expand Down

0 comments on commit 1ae56ee

Please sign in to comment.