Skip to content

Commit

Permalink
fix np.float_ issue
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Feb 6, 2025
1 parent 291a54c commit 0674b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions navis/plotting/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def make_tube(segments, radii=1.0, tube_points=8, use_normals=True):
faces : np.ndarray
"""
vertices = np.empty((0, 3), dtype=np.float_)
vertices = np.empty((0, 3), dtype=np.float64)
indices = np.empty((0, 3), dtype=np.uint32)

if not isinstance(radii, Iterable):
Expand Down Expand Up @@ -219,7 +219,7 @@ def make_tube(segments, radii=1.0, tube_points=8, use_normals=True):
# Vertices for each point on the circle
verts = np.repeat(points, tube_points, axis=0)

v = np.arange(tube_points, dtype=np.float_) / tube_points * 2 * np.pi
v = np.arange(tube_points, dtype=np.float64) / tube_points * 2 * np.pi

all_cx = (
radius
Expand Down

0 comments on commit 0674b08

Please sign in to comment.