We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b346e commit 1095ea2Copy full SHA for 1095ea2
src/ansys/dpf/core/geometry.py
@@ -154,7 +154,7 @@ class Line:
154
def __init__(self, coordinates, n_points=100, server=None):
155
"""Initialize line object from two 3D points and discretize."""
156
if not isinstance(coordinates, Field):
157
- coordinates = np.asarray(coordinates, dtype=np.number)
+ coordinates = np.asarray(coordinates, dtype=np.float64)
158
coordinates = field_from_array(coordinates)
159
if not len(coordinates.data) == 2:
160
raise ValueError("Only two points must be introduced to define a line")
0 commit comments