From 2ca9f67e18bf761edfda73024e4ea6b696f3f0eb Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Wed, 11 Jun 2025 11:37:00 +0200 Subject: [PATCH] fix(dependencies): expired deprecation for conversion of np.inexact to dtype in numpy 2.3.0 --- src/ansys/dpf/core/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/dpf/core/geometry.py b/src/ansys/dpf/core/geometry.py index 0dfd662bee1..0a0d98dbcfe 100644 --- a/src/ansys/dpf/core/geometry.py +++ b/src/ansys/dpf/core/geometry.py @@ -154,7 +154,7 @@ class Line: def __init__(self, coordinates, n_points=100, server=None): """Initialize line object from two 3D points and discretize.""" if not isinstance(coordinates, Field): - coordinates = np.asarray(coordinates, dtype=np.number) + coordinates = np.asarray(coordinates, dtype=np.float64) coordinates = field_from_array(coordinates) if not len(coordinates.data) == 2: raise ValueError("Only two points must be introduced to define a line")