Skip to content

Commit

Permalink
Use np.int64 instead of np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Dec 22, 2022
1 parent eaa15d2 commit ee950ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytransform3d/plot_utils/_artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def set_data(self, H):
self.trajectory.set_3d_properties(positions[:, 2])

key_frames_indices = np.linspace(
0, len(H) - 1, len(self.key_frames), dtype=np.int)
0, len(H) - 1, len(self.key_frames), dtype=np.int64)
for i, key_frame_idx in enumerate(key_frames_indices):
self.key_frames[i].set_data(H[key_frame_idx])

Expand Down
2 changes: 1 addition & 1 deletion pytransform3d/visualizer/_artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def __init__(self, H, n_frames=10, s=1.0, c=(0, 0, 0)):
self.line = Line3D(H[:, :3, 3], c)

self.key_frames_indices = np.linspace(
0, len(self.H) - 1, self.n_frames, dtype=np.int)
0, len(self.H) - 1, self.n_frames, dtype=np.int64)
for key_frame_idx in self.key_frames_indices:
self.key_frames.append(Frame(self.H[key_frame_idx], s=self.s))

Expand Down

0 comments on commit ee950ed

Please sign in to comment.