Skip to content

Commit

Permalink
Update src/ansys/dpf/core/scoping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Jan 27, 2025
1 parent 80180de commit 52b9db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/dpf/core/scoping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 52b9db2

Please sign in to comment.