Skip to content

Commit

Permalink
Fix regridding test for unstructured nearest regridding on OSX (#2319)
Browse files Browse the repository at this point in the history
Co-authored-by: Valeriu Predoi <[email protected]>
  • Loading branch information
schlunma and valeriupredoi authored Feb 2, 2024
1 parent b0d30f6 commit 70b1956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ def unstructured_grid_cube():
[0.0, 1.0], standard_name='time', units='days since 1950-01-01'
)
lat = AuxCoord(
[-1.0, -1.0, 1.0, 1.0], standard_name='latitude', units='degrees_north'
[-50.0, -50.0, 20.0, 20.0],
standard_name='latitude',
units='degrees_north',
)
lon = AuxCoord(
[179.0, 180.0, 180.0, 179.0],
[70.0, 250.0, 250.0, 70.0],
standard_name='longitude',
units='degrees_east',
)
Expand Down Expand Up @@ -56,7 +58,7 @@ def test_regridding(self, unstructured_grid_cube, target_grid):
np.testing.assert_allclose(
result.data,
[[[0.0, 1.0, 1.0],
[0.0, 2.0, 1.0],
[3.0, 2.0, 2.0],
[3.0, 2.0, 2.0]],
[[0.0, 0.0, 0.0],
[0.0, 0.0, 0.0],
Expand Down Expand Up @@ -89,7 +91,7 @@ def test_regridding_with_dim_coord(
np.testing.assert_allclose(
result.data,
[[[0.0, 1.0, 1.0],
[0.0, 2.0, 1.0],
[3.0, 2.0, 2.0],
[3.0, 2.0, 2.0]],
[[0.0, 0.0, 0.0],
[0.0, 0.0, 0.0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
))


@pytest.mark.xfail
@pytest.mark.parametrize('spec', PASSING_SPECS)
def test_extract_regional_grid_passing(spec):
"""Test regridding with regional target spec."""
Expand Down

0 comments on commit 70b1956

Please sign in to comment.