From bd9f02ecc00f341140fb2fedc53a0aa2ae2dca3a Mon Sep 17 00:00:00 2001 From: jinningwang Date: Mon, 3 Apr 2023 15:02:49 -0400 Subject: [PATCH] Quick fix of numpy object --- andes/io/matpower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/andes/io/matpower.py b/andes/io/matpower.py index 4a8498b90..97c41f38c 100644 --- a/andes/io/matpower.py +++ b/andes/io/matpower.py @@ -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