Skip to content

Commit

Permalink
Clearly separate fixes and CMOR checks (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlunma authored Sep 28, 2023
1 parent 10bd776 commit ac31d53
Show file tree
Hide file tree
Showing 110 changed files with 3,551 additions and 1,462 deletions.
4 changes: 2 additions & 2 deletions esmvalcore/cmor/_fixes/cmip6/iitm_esm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np

from esmvalcore.cmor.check import _get_time_bounds
from esmvalcore.cmor._fixes.fix import get_time_bounds

from ..common import OceanFixGrid
from ..fix import Fix
Expand Down Expand Up @@ -33,7 +33,7 @@ def fix_metadata(self, cubes):
for cube in cubes:
freq = self.extra_facets["frequency"]
time = cube.coord("time", dim_coords=True)
bounds = _get_time_bounds(time, freq)
bounds = get_time_bounds(time, freq)
if np.any(bounds != time.bounds):
time.bounds = bounds
logger.warning(
Expand Down
4 changes: 2 additions & 2 deletions esmvalcore/cmor/_fixes/cmip6/kace_1_0_g.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np

from esmvalcore.cmor.check import _get_time_bounds
from esmvalcore.cmor._fixes.fix import get_time_bounds

from ..common import ClFixHybridHeightCoord, OceanFixGrid
from ..fix import Fix
Expand Down Expand Up @@ -39,7 +39,7 @@ def fix_metadata(self, cubes):
for cube in cubes:
freq = self.extra_facets["frequency"]
time = cube.coord("time", dim_coords=True)
bounds = _get_time_bounds(time, freq)
bounds = get_time_bounds(time, freq)
if np.any(bounds != time.bounds):
time.bounds = bounds
logger.warning(
Expand Down
Loading

0 comments on commit ac31d53

Please sign in to comment.