Skip to content

Commit

Permalink
Fixes broadcasting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
awarsewa authored Jul 10, 2024
1 parent 2f5efea commit d3cc2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandapower/grid_equivalents/rei_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _calculate_equivalent_Ybus(net_zpbn, bus_lookups, eq_type,
if eq_type == "xward":
idx_large_y = np.linspace(0, len(Ybus_new_sequence)-1, len(Ybus_new_sequence))
idx_large_y = ((idx_large_y >= nb_dict["nb_i"]+nb_dict["nb_b"]) &
(Ybus_new_sequence[:] in net_zpbn._ppc["gen"][:, 0]))
(np.isin(Ybus_new_sequence[:], net_zpbn._ppc["gen"][:, 0])))
Ybus_sorted[idx_large_y, idx_large_y] = 1e8

# --- calculate calculate equivalent Ybus and equivalent Ybus without_internals
Expand Down

0 comments on commit d3cc2f6

Please sign in to comment.