Skip to content

Commit

Permalink
GmMultiPolyIntersector for python - fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkennard-aquaveo committed Jan 4, 2024
1 parent 33a70f0 commit 81af01d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _run_test(self, x1, y1, x2, y2, points, polys, expected_poly_ids, expected_t
"""Runs the test."""
mpi = grid.geometry.MultiPolyIntersector(points, polys)
poly_ids, t_values, pts = mpi.traverse_line_segment(x1, y1, x2, y2)
assert poly_ids == expected_poly_ids
assert poly_ids == expected_poly_ids, str(f'Expected {expected_poly_ids}. Got {poly_ids}.')
assert np.testing.assert_allclose(t_values, expected_t_values)
for point, expected_point in zip(self._zeroed_z(pts), self._zeroed_z(expected_points)):
assert np.testing.assert_allclose(point, expected_point)
Expand Down

0 comments on commit 81af01d

Please sign in to comment.