Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 30, 2024
1 parent b795c7a commit 073075e
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 073075e

Please sign in to comment.