Skip to content

Commit

Permalink
Revert geo_potential cube item code & add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
truth-quark committed Oct 2, 2024
1 parent fbf44d4 commit 994b207
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_um2netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 994b207

Please sign in to comment.