From eed36ddf088063037d47081c96e9b55b0727903a Mon Sep 17 00:00:00 2001 From: Michael Kennard Date: Thu, 4 Jan 2024 08:30:47 -0700 Subject: [PATCH] GmMultiPolyIntersector for python - fix CI errors --- .../unit_tests/geometry_tests/multi_poly_intersector_pyt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py b/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py index 8fe2fb49..4c3cadeb 100644 --- a/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py +++ b/_package/tests/unit_tests/geometry_tests/multi_poly_intersector_pyt.py @@ -21,8 +21,8 @@ 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_vals, pts = mpi.traverse_line_segment(x1, y1, x2, y2) - assert poly_ids == expected_poly_ids, str(f'Expected {expected_poly_ids}. Got {poly_ids}.') - assert np.testing.assert_allclose(t_vals, expected_t_vals), str(f'Expected {expected_t_vals}. Got {t_vals}.') + assert poly_ids == expected_poly_ids, f'Expected {expected_poly_ids}. Got {poly_ids}.' + assert np.testing.assert_allclose(t_vals, expected_t_vals), f'Expected {expected_t_vals}. Got {t_vals}.' for point, expected_point in zip(self._zeroed_z(pts), self._zeroed_z(expected_points)): assert np.testing.assert_allclose(point, expected_point)