From 0016a2f21e78d00b1a94eefe4db8e476358483eb Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Fri, 24 May 2024 14:48:13 +0200 Subject: [PATCH] add pip dependencies (#47) --- c3s_eqc_automatic_quality_control/__init__.py | 9 ++++++++- .../diagnostics.py | 4 +++- pyproject.toml | 20 +++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/c3s_eqc_automatic_quality_control/__init__.py b/c3s_eqc_automatic_quality_control/__init__.py index 8a7c304..6c76ff9 100644 --- a/c3s_eqc_automatic_quality_control/__init__.py +++ b/c3s_eqc_automatic_quality_control/__init__.py @@ -13,6 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +from . import download, plot, utils try: # NOTE: the `version.py` file must not be present in the git repository @@ -22,4 +23,10 @@ # Local copy or not installed with setuptools __version__ = "999" -__all__ = ["__version__"] +__all__ = [ + "__version__", + "download", + "diagnostics", + "plot", + "utils", +] diff --git a/c3s_eqc_automatic_quality_control/diagnostics.py b/c3s_eqc_automatic_quality_control/diagnostics.py index 519494c..a829122 100644 --- a/c3s_eqc_automatic_quality_control/diagnostics.py +++ b/c3s_eqc_automatic_quality_control/diagnostics.py @@ -24,7 +24,7 @@ import xarray as xr from xarray.core.common import DataWithCoords -from . import _grid_cell_area, _regrid, _spatial_weighted, _time_weighted, utils +from . import _grid_cell_area, _spatial_weighted, _time_weighted, utils __all__ = [ "annual_weighted_mean", @@ -90,6 +90,8 @@ def regrid( DataArray or Dataset Interpolated object """ + from . import _regrid + call_kwargs = {} for key in {"keep_attrs", "skipna", "na_thres", "output_chunks"} & set(kwargs): call_kwargs[key] = kwargs.pop(key) diff --git a/pyproject.toml b/pyproject.toml index 9be4dda..3e45799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,26 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering" ] +dependencies = [ + "cacholote", + "cads-toolbox", + "cartopy", + "cf-xarray", + "cgul", + "emohawk", + "fsspec", + "joblib", + "matplotlib", + "numpy", + "pandas", + "plotly", + "pyproj", + "shapely", + "tqdm", + "typing_extensions", + "xarray", + "xskillscore" +] description = "C3S EQC Automatic Quality Control" dynamic = ["version"] license = {file = "LICENSE"}