diff --git a/docs/src/conf.py b/docs/src/conf.py index 22ed0955..2534f9b5 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -5,6 +5,7 @@ """ from datetime import datetime +import locale import os from pathlib import Path import re @@ -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 ----------------------------------------------------- diff --git a/esmf_regrid/__init__.py b/esmf_regrid/__init__.py index 9c6070d6..2472b508 100644 --- a/esmf_regrid/__init__.py +++ b/esmf_regrid/__init__.py @@ -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