Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/load_context' into load_context
Browse files Browse the repository at this point in the history
* origin/load_context:
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
stephenworsley committed Jul 30, 2024
2 parents 3da54b6 + 073075e commit f12d2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions esmf_regrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
_load_context = _imesh.PARSE_UGRID_ON_LOAD
else:
from contextlib import nullcontext

_load_context = nullcontext

# constants needs to be above schemes, as it is used within
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

import iris
import numpy as np

try:
from iris.experimental.ugrid import PARSE_UGRID_ON_LOAD

_load_context = PARSE_UGRID_ON_LOAD.context
except ImportError:
from contextlib import nullcontext

_load_context = nullcontext

from esmf_regrid.experimental.unstructured_scheme import (
Expand Down

0 comments on commit f12d2b1

Please sign in to comment.