Skip to content

Commit

Permalink
Merge pull request #174 from UCL/173-test_voxelise
Browse files Browse the repository at this point in the history
Issue #173 trying to offset the two random point clouds
  • Loading branch information
thompson318 committed Apr 28, 2021
2 parents 266dfd8 + ceccc72 commit 8592177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/models/test_voxelise.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def test_voxelise_more_than_one_surface():
grid_elements=grid_size
)

points_a = np.random.random((1000,3))
points_b = np.random.random((1000,3))
points_a = np.random.random((1000,3)) - 0.5 #issue #173 try and separate
points_b = np.random.random((1000,3)) * 1.5 #the point clouds

grid = voxelise.voxelise(input_mesh=points_a,
output_grid=grid,
Expand Down Expand Up @@ -341,4 +341,4 @@ def test_entire_workflow():
# expected_mean = [ -41.47275, 1.8251724, 1530.5344]

# assert numpy_data.shape == (2582, 3)
# assert np.allclose(mean_values, expected_mean)
# assert np.allclose(mean_values, expected_mean)

0 comments on commit 8592177

Please sign in to comment.