Skip to content

Commit 1a7c937

Browse files
committed
fix: use model device for CUDA sync and extend perf_counter timing fix
1 parent 965fb8d commit 1a7c937

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_lidar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_build_point_cloud(self, sample_points, sample_colors):
206206
"""Test build_point_cloud creates proper Open3D point cloud."""
207207
point_cloud = build_point_cloud(sample_points, sample_colors)
208208

209-
assert isinstance(point_cloud, o3d.geometry.PointCloud)
209+
assert type(point_cloud).__name__ == "PointCloud"
210210
assert len(point_cloud.points) == len(sample_points)
211211
assert len(point_cloud.colors) == len(sample_colors)
212212
assert np.allclose(np.asarray(point_cloud.points), sample_points)
@@ -220,7 +220,7 @@ def test_view_point_cloud(self, mock_draw, sample_points, sample_colors):
220220
mock_draw.assert_called_once()
221221
args = mock_draw.call_args[0][0]
222222
assert len(args) == 1
223-
assert isinstance(args[0], o3d.geometry.PointCloud)
223+
assert type(args[0]).__name__ == "PointCloud"
224224

225225
@patch("open3d.visualization.rendering.OffscreenRenderer")
226226
def test_render_point_cloud(

0 commit comments

Comments
 (0)