Skip to content

Commit

Permalink
Fix more tests for always-on ugrid loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Jul 19, 2024
1 parent 6be67d1 commit ce621f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion lib/iris/tests/integration/test_regridding.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_nearest(self):
class TestUnstructured(tests.IrisTest):
def setUp(self):
path = tests.get_data_path(
("NetCDF", "unstructured_grid", "theta_nodal_xios.nc")
("NetCDF", "unstructured_grid", "theta_nodal_not_ugrid.nc")
)
self.src = iris.load_cube(path, "Potential Temperature")
self.grid = simple_3d()[0, :, :]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ def test_var_name(self):
self.assertEqual(1, len(file_meshes))
self.assertEqual(second_name, file_meshes[0].var_name)

def test_no_parsing(self):
nc_path = cdl_to_nc(self.ref_cdl)
with self.assertRaisesRegex(
ValueError, ".*Must be True to enable mesh loading."
):
_ = load_meshes(nc_path)

def test_invalid_scheme(self):
with self.assertRaisesRegex(ValueError, "Iris cannot handle the URI scheme:.*"):
_ = load_meshes("foo://bar")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ def setUpClass(cls):
cls.nc_path = cdl_to_nc(cls.ref_cdl)
cls.mesh_cubes = list(load_cubes(cls.nc_path))

def test_mesh_handled(self):
cubes_no_ugrid = list(load_cubes(self.nc_path))
self.assertEqual(4, len(cubes_no_ugrid))
self.assertEqual(2, len(self.mesh_cubes))

def test_standard_dims(self):
for cube in self.mesh_cubes:
self.assertIsNotNone(cube.coords("levels"))
Expand Down

0 comments on commit ce621f8

Please sign in to comment.