Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyCMWF committed Jul 17, 2024
1 parent 451d444 commit c9bd999
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

[earthkit-transforms](https://github.com/ecmwf/earthkit-transforms)


# earthkit-aggregate

A toolkit for statistical analysis of temporal-geospatial data.
Expand Down
19 changes: 10 additions & 9 deletions earthkit/aggregate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,18 @@

spatial = transform_module_inputs(spatial)

import warnings

from earthkit.aggregate.general import reduce, resample, rolling_reduce

warnings.warn(
"earthkit-aggregate as a standalone package is deprecated, "
"please find aggregate as a submodule in the earthkit-transforms package.",
DeprecationWarning,
stacklevel=2,
)


reduce = transform_function_inputs(reduce)
rolling_reduce = transform_function_inputs(rolling_reduce)
resample = transform_function_inputs(resample)
Expand All @@ -54,12 +64,3 @@
"resample",
"rolling_reduce",
]


import warnings

warnings.warn(
"earthkit-aggregate as a standalone package is deprecated, "
"please find aggregate as a submodule in the earthkit-transforms package.",
DeprecationWarning, stacklevel=2
)

0 comments on commit c9bd999

Please sign in to comment.