Skip to content

Commit

Permalink
add pip dependencies (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 authored May 24, 2024
1 parent acaba21 commit 0016a2f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
9 changes: 8 additions & 1 deletion c3s_eqc_automatic_quality_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,4 +23,10 @@
# Local copy or not installed with setuptools
__version__ = "999"

__all__ = ["__version__"]
__all__ = [
"__version__",
"download",
"diagnostics",
"plot",
"utils",
]
4 changes: 3 additions & 1 deletion c3s_eqc_automatic_quality_control/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 0016a2f

Please sign in to comment.