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))