Skip to content

Commit

Permalink
Merge pull request #437 from jinningwang/iomp
Browse files Browse the repository at this point in the history
Quick fix of numpy object
  • Loading branch information
cuihantao committed Apr 3, 2023
2 parents 4f0a0b9 + bd9f02e commit b928120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion andes/io/matpower.py
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 b928120

Please sign in to comment.