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.
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.5.22'
21
- __version_tuple__ = version_tuple = (0, 5, 22)
20
+ __version__ = version = '0.5.23'
21
+ __version_tuple__ = version_tuple = (0, 5, 23)
@@ -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
- warnings.warn(f"Negative values for {values}: {np.amin(values)} {np.amax(values)}")
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.22
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]>=0.12.4; extra == "create"
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>=0.5; extra == "xarray"
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=KERiCy5SlogIpKH0HhOSfNJ6Gz_dzHHWww2moJQR1BQ,513
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=ifnUtbvmA8s7KOEL7ZOgbkiPxL3pa0FclGsZWZN3eyE,32782
78
- anemoi/datasets/create/sources/accumulations2.py,sha256=iBORRrH0N7r3gMWm3mCkJ6XmB-dO_lEckHPwvmk9fu0,20673
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.22.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
140
- anemoi_datasets-0.5.22.dist-info/METADATA,sha256=69SMdVpJ30oSexpKZRQnt8wh1-Y_SqG2blHvW0XByVY,16113
141
- anemoi_datasets-0.5.22.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
142
- anemoi_datasets-0.5.22.dist-info/entry_points.txt,sha256=yR-o-4uiPEA_GLBL81SkMYnUoxq3CAV3hHulQiRtGG0,66
143
- anemoi_datasets-0.5.22.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
144
- anemoi_datasets-0.5.22.dist-info/RECORD,,
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,,