Skip to content

Commit

Permalink
Quick fix of numpy object
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Apr 3, 2023
1 parent 4f0a0b9 commit bd9f02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion andes/io/matpower.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _get_bus_id_caller(bus):
"""

if np.array(bus.idx.v).dtype == np.object:
if np.array(bus.idx.v).dtype == object:
return lambda x: bus.idx2uid(x) + 1
else:
return lambda x: x
Expand Down

0 comments on commit bd9f02e

Please sign in to comment.