From 52b9db232fb05b0e74a8317c751897e3edf94ab6 Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:33:15 +0100 Subject: [PATCH] Update src/ansys/dpf/core/scoping.py --- src/ansys/dpf/core/scoping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/dpf/core/scoping.py b/src/ansys/dpf/core/scoping.py index 0654ed52e5..9c455fbfa8 100644 --- a/src/ansys/dpf/core/scoping.py +++ b/src/ansys/dpf/core/scoping.py @@ -195,7 +195,7 @@ def _set_ids(self, ids: IdVectorType): if isinstance(ids, range): ids = list(ids) if isinstance(ids, np.ndarray): - if ids.dtype == np.int64: + if ids.dtype != np.int32: ids = ids.astype(np.int32) if isinstance(self._server, server_types.InProcessServer): self._api.scoping_resize(self, len(ids))