Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SVivdich02 committed Jan 3, 2024
1 parent a515a12 commit 81bee10
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/test_voxel_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@
],
)
def test_voxel_down_sample(
src_points, src_points2instances, expected_points, expected_points2instances, expected_trace
src_points,
src_points2instances,
expected_points,
expected_points2instances,
expected_trace
):
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(src_points)
Expand All @@ -82,8 +86,13 @@ def test_voxel_down_sample(
)

assert check_result_points(actual_pcd, expected_points) == len(expected_points)
assert check_result_points2instances(actual_points2instances, expected_points2instances) == expected_points2instances.shape[0]
assert check_result_trace(actual_trace, expected_trace) == len(expected_trace)
assert (
check_result_points2instances(
actual_points2instances, expected_points2instances
)
== expected_points2instances.shape[0]
)


def check_result_points(actual_pcd, expected_points):
Expand Down

0 comments on commit 81bee10

Please sign in to comment.