Skip to content

Commit f946ed2

Browse files
authored
Merge branch 'main' into feature/resolve-validation-test-warnings
2 parents cf22ee6 + 49c3f36 commit f946ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/power_grid_model_io/converters/pandapower_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ def _pp_buses_output_3ph(self):
17411741
pp_output_buses_3ph["va_b_degree"] = node_u_angle[:, 1] * (180.0 / np.pi)
17421742
pp_output_buses_3ph["vm_c_pu"] = node_u_pu[:, 2]
17431743
pp_output_buses_3ph["va_c_degree"] = node_u_angle[:, 2] * (180.0 / np.pi)
1744-
pp_output_buses_3ph["unbalance_percent"] = np.abs(u_sequence[:, 0]) / np.abs(u_sequence[:, 1]) * 100
1744+
pp_output_buses_3ph["unbalance_percent"] = np.abs(u_sequence[:, 2]) / np.abs(u_sequence[:, 1]) * 100
17451745

17461746
# p_to, p_from, q_to and q_from connected to the bus have to be summed up
17471747
self._pp_buses_output_3ph__accumulate_power(pp_output_buses_3ph)
@@ -1875,10 +1875,10 @@ def _pp_lines_output_3ph(self):
18751875
"i_b_to_ka",
18761876
"i_c_to_ka",
18771877
"i_n_to_ka",
1878-
"loading_percent",
18791878
"loading_a_percent",
18801879
"loading_b_percent",
18811880
"loading_c_percent",
1881+
"loading_percent",
18821882
],
18831883
index=self._get_pp_ids("line", pgm_output_lines["id"]),
18841884
)

0 commit comments

Comments
 (0)