anemoi-datasets 0.5.22__py3-none-any.whl → 0.5.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anemoi/datasets/_version.py +2 -2
- anemoi/datasets/create/sources/accumulations.py +0 -6
- anemoi/datasets/create/sources/accumulations2.py +2 -3
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/METADATA +3 -3
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/RECORD +9 -9
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/WHEEL +0 -0
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/entry_points.txt +0 -0
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/licenses/LICENSE +0 -0
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.23.dist-info}/top_level.txt +0 -0
anemoi/datasets/_version.py
CHANGED
|
@@ -843,8 +843,6 @@ def _compute_accumulations(
|
|
|
843
843
|
else:
|
|
844
844
|
AccumulationClass = AccumulationFromStart if data_accumulation_period in (0, None) else AccumulationFromLastStep
|
|
845
845
|
|
|
846
|
-
LOG.info(f"XXXXXXXXXXX {step1=}, {step2=}, {data_accumulation_period=}, {base_times=}, {adjust_step=}")
|
|
847
|
-
|
|
848
846
|
mars_date_time_steps = AccumulationClass.mars_date_time_steps(
|
|
849
847
|
dates=dates,
|
|
850
848
|
step1=step1,
|
|
@@ -882,16 +880,12 @@ def _compute_accumulations(
|
|
|
882
880
|
accumulations = {}
|
|
883
881
|
|
|
884
882
|
for date, time, steps in mars_date_time_steps:
|
|
885
|
-
LOG.info(f"Accumulation request: { date, time, steps}")
|
|
886
883
|
for p in param:
|
|
887
884
|
for n in number:
|
|
888
885
|
r = dict(request, param=p, date=date, time=time, step=sorted(steps), number=n)
|
|
889
886
|
|
|
890
887
|
requests.append(patch(r))
|
|
891
888
|
|
|
892
|
-
for r in requests:
|
|
893
|
-
LOG.info(f"Accumulation request: {r}")
|
|
894
|
-
|
|
895
889
|
ds = mars(
|
|
896
890
|
context, dates, *requests, request_already_using_valid_datetime=True, use_cdsapi_dataset=use_cdsapi_dataset
|
|
897
891
|
)
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import datetime
|
|
11
11
|
import logging
|
|
12
|
-
import warnings
|
|
13
12
|
from abc import abstractmethod
|
|
14
13
|
from copy import deepcopy
|
|
15
14
|
from typing import Any
|
|
@@ -118,8 +117,8 @@ class Period:
|
|
|
118
117
|
|
|
119
118
|
assert accumulated.shape == values.shape, (accumulated.shape, values.shape)
|
|
120
119
|
|
|
121
|
-
if not np.all(values >= 0):
|
|
122
|
-
|
|
120
|
+
# if not np.all(values >= 0):
|
|
121
|
+
# warnings.warn(f"Negative values for {values}: {np.amin(values)} {np.amax(values)}")
|
|
123
122
|
|
|
124
123
|
return accumulated + self.sign * values
|
|
125
124
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anemoi-datasets
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.23
|
|
4
4
|
Summary: A package to hold various functions to support training of ML models on ECMWF data.
|
|
5
5
|
Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
|
|
6
6
|
License: Apache License
|
|
@@ -241,7 +241,7 @@ Requires-Dist: prettytable; extra == "comparelam"
|
|
|
241
241
|
Requires-Dist: termcolor; extra == "comparelam"
|
|
242
242
|
Provides-Extra: create
|
|
243
243
|
Requires-Dist: cachetools; extra == "create"
|
|
244
|
-
Requires-Dist: earthkit-data[mars]
|
|
244
|
+
Requires-Dist: earthkit-data[mars]<0.14,>=0.12.4; extra == "create"
|
|
245
245
|
Requires-Dist: earthkit-geo>=0.3; extra == "create"
|
|
246
246
|
Requires-Dist: earthkit-meteo>=0.3; extra == "create"
|
|
247
247
|
Requires-Dist: eccodes>=2.39.1; extra == "create"
|
|
@@ -269,5 +269,5 @@ Requires-Dist: kerchunk; extra == "xarray"
|
|
|
269
269
|
Requires-Dist: pandas; extra == "xarray"
|
|
270
270
|
Requires-Dist: planetary-computer; extra == "xarray"
|
|
271
271
|
Requires-Dist: pystac-client; extra == "xarray"
|
|
272
|
-
Requires-Dist: s3fs
|
|
272
|
+
Requires-Dist: s3fs; extra == "xarray"
|
|
273
273
|
Dynamic: license-file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
anemoi/datasets/__init__.py,sha256=i_wsAT3ezEYF7o5dpqGrpoG4wmLS-QIBug18uJbSYMs,1065
|
|
2
2
|
anemoi/datasets/__main__.py,sha256=ErwAqE3rBc7OaNO2JRsEOhWpB8ldjAt7BFSuRhbnlqQ,936
|
|
3
|
-
anemoi/datasets/_version.py,sha256=
|
|
3
|
+
anemoi/datasets/_version.py,sha256=GGi-5Lo_RMRAsavvRe2IgZSfPfbd4D66RzLtCKVP-L0,513
|
|
4
4
|
anemoi/datasets/check.py,sha256=hbEMUurl2IjZbp56dBgOfAEsAmmgymgRM5ySaMJSTdk,2755
|
|
5
5
|
anemoi/datasets/grids.py,sha256=Hhj1aOXHvDjmI46M_UlLSjCs1qYqxH-uqd_kapDSdbU,18134
|
|
6
6
|
anemoi/datasets/testing.py,sha256=fy_JzavUwLlK_2rtXAT-UGUyo5gjyQW2y826zf334Wg,2645
|
|
@@ -74,8 +74,8 @@ anemoi/datasets/create/input/step.py,sha256=WcR9NgRvUKF60Fo5veLvRCAQMrOd55x1gOEA
|
|
|
74
74
|
anemoi/datasets/create/input/template.py,sha256=Iycw9VmfA0WEIDP_Of8bp-8HsV0EUfwbnm0WjxiO4GA,4092
|
|
75
75
|
anemoi/datasets/create/input/trace.py,sha256=dakPYMmwKq6s17Scww1CN-xYBD3btJTGeDknOhAcnEM,3320
|
|
76
76
|
anemoi/datasets/create/sources/__init__.py,sha256=XNiiGaC6NbxnGfl6glPw-gTJASi3vsGKwVlfkMqYGk4,950
|
|
77
|
-
anemoi/datasets/create/sources/accumulations.py,sha256=
|
|
78
|
-
anemoi/datasets/create/sources/accumulations2.py,sha256=
|
|
77
|
+
anemoi/datasets/create/sources/accumulations.py,sha256=9I8_AQtD62Ji-7SMyyYBTdIZBG2rlPY9V2YjqLeWYl8,32538
|
|
78
|
+
anemoi/datasets/create/sources/accumulations2.py,sha256=UwKJOtfbJGNTceVpLtHC8dJhROJbxzjF3V_HR7wTwrk,20661
|
|
79
79
|
anemoi/datasets/create/sources/anemoi_dataset.py,sha256=2xJJTmKlv87F_2ECMKeehaeW7_oWLlDcLt8C_Prp1RI,2017
|
|
80
80
|
anemoi/datasets/create/sources/constants.py,sha256=5O6d9tEuAmVjl5vNkNfmkaAjKXFlw1UjeueTsF1GZCI,1528
|
|
81
81
|
anemoi/datasets/create/sources/eccc_fstd.py,sha256=8HK38f444HcWMvBhooP0XqTfMXYoCbN_8G9RI_Ne5rc,659
|
|
@@ -136,9 +136,9 @@ anemoi/datasets/data/xy.py,sha256=-jWzYismrK3eI3YCKIBpU1BCmraRncmVn0_2IUY--lk,75
|
|
|
136
136
|
anemoi/datasets/dates/__init__.py,sha256=pEArHDQ7w5E0WC8Vvf9ypyKSdm6gnhoN9TmooITB7C4,13617
|
|
137
137
|
anemoi/datasets/dates/groups.py,sha256=IOveL6IyTXZwEdXZEnRAnpu9pINY95VN7LzcpLfJ09E,10105
|
|
138
138
|
anemoi/datasets/utils/__init__.py,sha256=hCW0QcLHJmE-C1r38P27_ZOvCLNewex5iQEtZqx2ckI,393
|
|
139
|
-
anemoi_datasets-0.5.
|
|
140
|
-
anemoi_datasets-0.5.
|
|
141
|
-
anemoi_datasets-0.5.
|
|
142
|
-
anemoi_datasets-0.5.
|
|
143
|
-
anemoi_datasets-0.5.
|
|
144
|
-
anemoi_datasets-0.5.
|
|
139
|
+
anemoi_datasets-0.5.23.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
|
|
140
|
+
anemoi_datasets-0.5.23.dist-info/METADATA,sha256=jL1dQ1T8U_2K69e01p_33gBflpXvPgBHNtx-u15qsiA,16114
|
|
141
|
+
anemoi_datasets-0.5.23.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
142
|
+
anemoi_datasets-0.5.23.dist-info/entry_points.txt,sha256=yR-o-4uiPEA_GLBL81SkMYnUoxq3CAV3hHulQiRtGG0,66
|
|
143
|
+
anemoi_datasets-0.5.23.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
|
|
144
|
+
anemoi_datasets-0.5.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|