diff --git a/pandapower/results_branch.py b/pandapower/results_branch.py index f3178f116..0d2fb9cef 100644 --- a/pandapower/results_branch.py +++ b/pandapower/results_branch.py @@ -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 @@ -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