Skip to content

Commit

Permalink
update np.int to np.int32
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangrui Wang committed Mar 24, 2024
1 parent 438d779 commit 869bbc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions igibson/render/mesh_renderer/mesh_renderer_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1915,8 +1915,8 @@ def setup_lidar_param(self):
xx = xx.flatten()
yy = yy.flatten()

x_samples = (np.tan(xx) / np.cos(yy) * self.height // 2 + self.height // 2).astype(np.int)
y_samples = (np.tan(yy) * self.height // 2 + self.height // 2).astype(np.int)
x_samples = (np.tan(xx) / np.cos(yy) * self.height // 2 + self.height // 2).astype(np.int32)
y_samples = (np.tan(yy) * self.height // 2 + self.height // 2).astype(np.int32)

self.x_samples = x_samples.flatten()
self.y_samples = y_samples.flatten()
Expand Down

0 comments on commit 869bbc7

Please sign in to comment.