Skip to content

Commit

Permalink
Fix for older iris versions (<3.10) (#431)
Browse files Browse the repository at this point in the history
* fix for older iris versions

* fix for readthedocs

* fix for readthedocs

* flake8
  • Loading branch information
stephenworsley authored Nov 7, 2024
1 parent d4e3f11 commit af9a69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

from datetime import datetime
import locale
import os
from pathlib import Path
import re
Expand All @@ -26,6 +27,7 @@
os.environ["ESMFMKFILE"] = f"{rtd_conda_prefix}/lib/esmf.mk"
os.environ["PROJ_DATA"] = f"{rtd_conda_prefix}/share/proj"
os.environ["PROJ_NETWORK"] = "OFF"
locale.setlocale(locale.LC_NUMERIC, "C")


# -- Project information -----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion esmf_regrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
raise exc

if hasattr(_imesh, "PARSE_UGRID_ON_LOAD"):
_load_context = _imesh.PARSE_UGRID_ON_LOAD
_load_context = _imesh.PARSE_UGRID_ON_LOAD.context
else:
from contextlib import nullcontext

Expand Down

0 comments on commit af9a69e

Please sign in to comment.