Skip to content

Commit

Permalink
Ignore type error
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Jan 15, 2024
1 parent a80925d commit 3f79e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esmvalcore/preprocessor/_regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,9 @@ def extract_levels(
set(levels).issubset(set(src_levels.points)):
# If all target levels exist in the source cube, simply extract them.
name = src_levels.name()
coord_values = {name: lambda cell: cell.point in set(levels)}
coord_values = {
name: lambda cell: cell.point in set(levels) # type: ignore
}
constraint = iris.Constraint(coord_values=coord_values)
result = cube.extract(constraint)
# Ensure the constraint did not fail.
Expand Down

0 comments on commit 3f79e1f

Please sign in to comment.