-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move xESMF to the "base" section in the conda env yml files - Remove all code related to `_has_xesmf()` and move xESMF related imports outside of conditional statements - Remove conditiondal statements related to xESMF that are no longer needed - Remove mentions of xESMF being an optional dependency in the getting-started documentation page - Update tests
- Loading branch information
tomvothecoder
committed
Nov 28, 2023
1 parent
577d7b6
commit d0b85ca
Showing
8 changed files
with
17 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
"""Unit test package for xcdat.""" | ||
from xarray.core.options import set_options | ||
from xarray.tests import _importorskip, requires_dask # noqa: F401 | ||
from xarray.tests import requires_dask # noqa: F401 | ||
|
||
set_options(warn_for_unclosed_files=False) | ||
|
||
has_xesmf, requires_xesmf = _importorskip("xesmf") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from xcdat.regridder.accessor import RegridderAccessor | ||
from xcdat.regridder.regrid2 import Regrid2Regridder | ||
from xcdat.regridder.xesmf import XESMFRegridder | ||
from xcdat.regridder.xgcm import XGCMRegridder | ||
from xcdat.utils import _has_module | ||
|
||
_has_xesmf = _has_module("xesmf") | ||
if _has_xesmf: | ||
from xcdat.regridder.xesmf import XESMFRegridder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters