Skip to content

Commit

Permalink
Merge branch 'main' into earthkit
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 24, 2024
2 parents 1444c6a + cc202ba commit ae3261f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
"commit": "6d3c980d7a6e07e3b39b17bf0d02dffe9bbf5aa6",
"commit": "22f52dd88a2ec84dfa380d8e2c655e0b3752a10a",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: blackdoc
additional_dependencies: [black==23.11.0]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
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 ae3261f

Please sign in to comment.