Skip to content

Commit

Permalink
avoid iris deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley committed Nov 14, 2024
1 parent 4b2ac6c commit 7149c06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esmf_regrid/tests/unit/schemes/test__mesh_to_MeshInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

from iris.coords import AuxCoord
from iris.cube import Cube
from iris.experimental.ugrid import Connectivity
import numpy as np
from numpy import ma
import scipy.sparse

try:
from iris.mesh import MeshXY
from iris.mesh import Connectivity
except ImportError as exc:
# Prior to v3.10.0, `MeshXY` could was named `Mesh`.
try:
from iris.experimental.ugrid import Mesh as MeshXY
from iris.experimental.ugrid import Connectivity
except ImportError:
raise exc

Expand Down

0 comments on commit 7149c06

Please sign in to comment.