From 994b207bd8c8bc7e198e2b62bf725b79713cda2e Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Wed, 2 Oct 2024 12:23:20 +1000 Subject: [PATCH] Revert geo_potential cube item code & add comments. --- test/test_um2netcdf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_um2netcdf.py b/test/test_um2netcdf.py index 3074187..2b7cd52 100644 --- a/test/test_um2netcdf.py +++ b/test/test_um2netcdf.py @@ -113,6 +113,11 @@ def coord(self, _name): raise CoordinateNotFoundError(msg) +# NB: these cube fixtures have been chosen to mimic cubes for testing key parts +# of the process() workflow. Some cubes require pressure level masking with the +# heaviside_uv/t cubes. These cubes facilitate different testing configurations. +# Modifying them has the potential to reduce test coverage! + @pytest.fixture def precipitation_flux_cube(lat_standard_nd_coord, lon_standard_nd_coord): # copied from aiihca.paa1jan.subset file @@ -124,7 +129,7 @@ def precipitation_flux_cube(lat_standard_nd_coord, lon_standard_nd_coord): @pytest.fixture def geo_potential_cube(lat_v_nd_coord, lon_u_nd_coord): """Return new cube requiring heaviside_t masking""" - geo_potential = DummyCube(30207, "geopotential_height", + geo_potential = DummyCube(30297, "geopotential_height", coords=[lat_v_nd_coord, lon_u_nd_coord]) return geo_potential