diff --git a/pyproject.toml b/pyproject.toml index 7722dd8ef38..abbeeea02b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "google-api-python-client", "grpcio >=1.63.0", "importlib-metadata >=4.0", - "numpy<2", + "numpy", "packaging", "protobuf", "psutil", diff --git a/src/ansys/dpf/core/custom_fields_container.py b/src/ansys/dpf/core/custom_fields_container.py index dd6917f00ca..42e12d175d8 100644 --- a/src/ansys/dpf/core/custom_fields_container.py +++ b/src/ansys/dpf/core/custom_fields_container.py @@ -294,7 +294,7 @@ class BodyFieldsContainer(FieldsContainer): >>> model = dpf.Model(examples.download_all_kinds_of_complexity_modal()) >>> fc = model.results.displacement.on_all_time_freqs.split_by_body.eval() >>> fc.get_mat_scoping().ids[3] - 45 + np.int32(45) >>> len(fc.get_fields_by_mat_id(45)) 45 >>> f_time_2 = fc.get_field_by_mat_id(45, timeid=2) diff --git a/src/ansys/dpf/core/model.py b/src/ansys/dpf/core/model.py index e5d8d8a625a..d149ce288b3 100644 --- a/src/ansys/dpf/core/model.py +++ b/src/ansys/dpf/core/model.py @@ -105,7 +105,7 @@ def metadata(self): >>> meshed_region = model.metadata.meshed_region >>> meshed_region.elements.scoping.ids[2] - 759 + np.int32(759) Get the data sources of the model. diff --git a/src/ansys/dpf/core/nodes.py b/src/ansys/dpf/core/nodes.py index ca8e5cb46f4..8db606d72be 100644 --- a/src/ansys/dpf/core/nodes.py +++ b/src/ansys/dpf/core/nodes.py @@ -214,7 +214,7 @@ def scoping(self): >>> meshed_region = model.metadata.meshed_region >>> nodes = model.metadata.meshed_region.nodes >>> nodes.scoping.ids[2] - 3 + np.int32(3) """ return self._mesh._get_scoping(loc=locations.nodal)