Skip to content

Commit

Permalink
fix access-mapping.yml extra_facets title (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaegar325 authored Jul 18, 2024
1 parent 1716cb8 commit 0a58be1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion esmvalcore/config/extra_facets/access-mappings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ESMValCore/doc/quickstart/find_data.rst).
---

ACCESS_ESM:
ACCESS-ESM1-5:

'*':

Expand Down
20 changes: 10 additions & 10 deletions tests/integration/cmor/_fixes/access/test_access_esm1_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_fix(mip, frequency, short_name, fix_name):
"""Load a fix from :mod:`esmvalcore.cmor._fixes.access.access_esm1_5`."""
dataset = Dataset(
project='ACCESS',
dataset='ACCESS_ESM',
dataset='ACCESS-ESM1-5',
mip=mip,
short_name=short_name,
)
Expand Down Expand Up @@ -98,11 +98,11 @@ def check_tas_metadata(cubes):
return cube


def check_hus_metadata(cubes):
"""Check hus metadata."""
def check_pr_metadata(cubes):
"""Check pr metadata."""
assert len(cubes) == 1
cube = cubes[0]
assert cube.var_name == 'hus'
assert cube.var_name == 'pr'
assert cube.standard_name == 'precipitation_flux'
assert cube.long_name == 'Precipitation'
assert cube.units == 'kg m-2 s-1'
Expand Down Expand Up @@ -162,7 +162,7 @@ def assert_plev_metadata(cube):

def test_only_time(monkeypatch, cubes_2d):
"""Test fix."""
fix = get_fix_allvar('Amon', 'mon', 'tas')
fix = get_fix_allvar('Amon', 'mon', 'pr')

coord_info = CoordinateInfo('time')
coord_info.standard_name = 'time'
Expand All @@ -172,7 +172,7 @@ def test_only_time(monkeypatch, cubes_2d):
fixed_cubes = fix.fix_metadata(cubes)

# Check cube metadata
cube = check_tas_metadata(fixed_cubes)
cube = check_pr_metadata(fixed_cubes)

# Check cube data
assert cube.shape == (1, 145, 192)
Expand All @@ -186,7 +186,7 @@ def test_only_time(monkeypatch, cubes_2d):

def test_only_latitude(monkeypatch, cubes_2d):
"""Test fix."""
fix = get_fix_allvar('Amon', 'mon', 'tas')
fix = get_fix_allvar('Amon', 'mon', 'pr')

coord_info = CoordinateInfo('latitude')
coord_info.standard_name = 'latitude'
Expand All @@ -196,7 +196,7 @@ def test_only_latitude(monkeypatch, cubes_2d):
fixed_cubes = fix.fix_metadata(cubes)

# Check cube metadata
cube = check_tas_metadata(fixed_cubes)
cube = check_pr_metadata(fixed_cubes)

# Check cube data
assert cube.shape == (1, 145, 192)
Expand All @@ -211,7 +211,7 @@ def test_only_latitude(monkeypatch, cubes_2d):

def test_only_longitude(monkeypatch, cubes_2d):
"""Test fix."""
fix = get_fix_allvar('Amon', 'mon', 'tas')
fix = get_fix_allvar('Amon', 'mon', 'pr')

coord_info = CoordinateInfo('longitude')
coord_info.standard_name = 'longitude'
Expand All @@ -221,7 +221,7 @@ def test_only_longitude(monkeypatch, cubes_2d):
fixed_cubes = fix.fix_metadata(cubes)

# Check cube metadata
cube = check_tas_metadata(fixed_cubes)
cube = check_pr_metadata(fixed_cubes)

# Check cube data
assert cube.shape == (1, 145, 192)
Expand Down

0 comments on commit 0a58be1

Please sign in to comment.