Skip to content

Commit 1095ea2

Browse files
authored
fix(dependencies): expired deprecation for conversion of np.inexact to dtype in numpy 2.3.0 (#2357)
1 parent f2b346e commit 1095ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/dpf/core/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Line:
154154
def __init__(self, coordinates, n_points=100, server=None):
155155
"""Initialize line object from two 3D points and discretize."""
156156
if not isinstance(coordinates, Field):
157-
coordinates = np.asarray(coordinates, dtype=np.number)
157+
coordinates = np.asarray(coordinates, dtype=np.float64)
158158
coordinates = field_from_array(coordinates)
159159
if not len(coordinates.data) == 2:
160160
raise ValueError("Only two points must be introduced to define a line")

0 commit comments

Comments
 (0)