Skip to content

Commit 3849393

Browse files
authored
Remove numpy restriction to <2 (#1864)
* Remove numpy restriction to <2 Signed-off-by: paul.profizi <[email protected]> * Update docstrings for numpy>=2 Signed-off-by: paul.profizi <[email protected]> * Update docstrings for numpy>=2 Signed-off-by: paul.profizi <[email protected]> --------- Signed-off-by: paul.profizi <[email protected]>
1 parent 59eb1b2 commit 3849393

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"google-api-python-client",
3131
"grpcio >=1.63.0",
3232
"importlib-metadata >=4.0",
33-
"numpy<2",
33+
"numpy",
3434
"packaging",
3535
"protobuf",
3636
"psutil",

src/ansys/dpf/core/custom_fields_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class BodyFieldsContainer(FieldsContainer):
294294
>>> model = dpf.Model(examples.download_all_kinds_of_complexity_modal())
295295
>>> fc = model.results.displacement.on_all_time_freqs.split_by_body.eval()
296296
>>> fc.get_mat_scoping().ids[3]
297-
45
297+
np.int32(45)
298298
>>> len(fc.get_fields_by_mat_id(45))
299299
45
300300
>>> f_time_2 = fc.get_field_by_mat_id(45, timeid=2)

src/ansys/dpf/core/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def metadata(self):
105105
106106
>>> meshed_region = model.metadata.meshed_region
107107
>>> meshed_region.elements.scoping.ids[2]
108-
759
108+
np.int32(759)
109109
110110
Get the data sources of the model.
111111

src/ansys/dpf/core/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def scoping(self):
214214
>>> meshed_region = model.metadata.meshed_region
215215
>>> nodes = model.metadata.meshed_region.nodes
216216
>>> nodes.scoping.ids[2]
217-
3
217+
np.int32(3)
218218
219219
"""
220220
return self._mesh._get_scoping(loc=locations.nodal)

0 commit comments

Comments
 (0)