Skip to content

Commit

Permalink
Fix tests on i386 architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed Jun 13, 2023
1 parent 4f3fd0b commit 1d23c61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geotiepoints/tests/test_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ def test_interpolate(self, grid_interpolator):
fine_y = np.arange(32)

res = grid_interpolator.interpolate((fine_y, fine_x), method="cubic")
np.testing.assert_allclose(res, self.expected)
np.testing.assert_allclose(res, self.expected, atol=2e-9)

def test_interpolate_slices(self, grid_interpolator):
"""Test that interpolation from slices is working."""
res = grid_interpolator.interpolate_slices((slice(0, 32), slice(0, 16)), method="cubic")
np.testing.assert_allclose(res, self.expected)
np.testing.assert_allclose(res, self.expected, atol=2e-9)

@pytest.mark.parametrize("chunks, expected_chunks", [(10, (10, 10)),
((10, 5), (10, 5))])
Expand All @@ -376,5 +376,5 @@ def test_interpolate_dask(self, grid_interpolator, chunks, expected_chunks):
assert res.chunks[0][0] == v_chunk
assert res.chunks[1][0] == h_chunk

np.testing.assert_allclose(res, self.expected)
np.testing.assert_allclose(res, self.expected, atol=2e-9)
assert interpolate.called

0 comments on commit 1d23c61

Please sign in to comment.