anemoi-datasets 0.5.22__py3-none-any.whl → 0.5.24__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.24'
21
+ __version_tuple__ = version_tuple = (0, 5, 24)
@@ -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
 
@@ -124,7 +124,7 @@ def execute(
124
124
  dates = [d.isoformat() for d in dates]
125
125
 
126
126
  for path in given_paths:
127
- paths = Pattern(path, ignore_missing_keys=True).substitute(*args, date=dates, **kwargs)
127
+ paths = Pattern(path).substitute(*args, date=dates, allow_extra=True, **kwargs)
128
128
 
129
129
  for name in ("grid", "area", "rotation", "frame", "resol", "bitmap"):
130
130
  if name in kwargs:
@@ -79,6 +79,6 @@ def iterate_patterns(
79
79
  kwargs["date"] = dates
80
80
 
81
81
  for path in given_paths:
82
- paths = Pattern(path, ignore_missing_keys=True).substitute(**kwargs)
82
+ paths = Pattern(path).substitute(allow_extra=True, **kwargs)
83
83
  for path in _expand(paths):
84
84
  yield path, dates
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anemoi-datasets
3
- Version: 0.5.22
3
+ Version: 0.5.24
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
@@ -225,7 +225,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
225
225
  Classifier: Programming Language :: Python :: Implementation :: PyPy
226
226
  Requires-Python: >=3.9
227
227
  License-File: LICENSE
228
- Requires-Dist: anemoi-transform>=0.1.9
228
+ Requires-Dist: anemoi-transform>=0.1.10
229
229
  Requires-Dist: anemoi-utils[provenance]>=0.4.21
230
230
  Requires-Dist: cfunits
231
231
  Requires-Dist: numcodecs<0.16
@@ -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; 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=lcZoRfXOiuB3TPgHkv3cgIWkhKIQEcb5AqCY1rvinxg,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,21 +74,21 @@ 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
82
82
  anemoi/datasets/create/sources/empty.py,sha256=5mVIVRUwnBfE3zp-bvNA_imXCSpyds-4mewcI8HXAiY,1020
83
83
  anemoi/datasets/create/sources/forcings.py,sha256=PmcAd-nFZzILRxfvrptb45VLD9Nd2vjy0xeToeoKl1Y,1222
84
- anemoi/datasets/create/sources/grib.py,sha256=wh1kx2IbzeHDzqSEKB-gaM3Cs3Z_oVa7pyHZiOzF3-s,4278
84
+ anemoi/datasets/create/sources/grib.py,sha256=_vTqP1yTyFJfOFP-_8m3aZnJ7F1aaM1UWgxRF9VDOP0,4270
85
85
  anemoi/datasets/create/sources/grib_index.py,sha256=Pnm0RLga9lpD4MqVaZr7IqXMBlw1DtTIWZRfz7fq30Q,19026
86
86
  anemoi/datasets/create/sources/hindcasts.py,sha256=_4880rgd4AsRxlDXVi6dkh8mlKXrz2i27btVlmlMFjY,2611
87
87
  anemoi/datasets/create/sources/legacy.py,sha256=RJce-9TwmUUCFbgC8A3Dp61nSBfB8_lWti8WNoOMIcU,2652
88
88
  anemoi/datasets/create/sources/mars.py,sha256=tesQz7Ne6SLBChE_cNJU6Sxr6e0LXFlUKQ8gCdRiCMw,13155
89
89
  anemoi/datasets/create/sources/netcdf.py,sha256=UnehMwEMJquqaOeU33zNyFUYfzqQx4Rg-GRmUcgMcbE,1222
90
90
  anemoi/datasets/create/sources/opendap.py,sha256=sTm0wXE_BHk9q8vaNNE_Y6BhTOmhxPweS8RTjP4HYjU,1254
91
- anemoi/datasets/create/sources/patterns.py,sha256=xNl3yI_cClgJsHaoYwE-bmDSzV4pcBgHRanHdz9MsQU,2291
91
+ anemoi/datasets/create/sources/patterns.py,sha256=siTExxLY5HWdIgOsufyQuG7Qvkt38oElZOFwz9h0JFg,2283
92
92
  anemoi/datasets/create/sources/recentre.py,sha256=OtobkmaWzGD3UacjXfK_Oerjf7EnQi85LIs9xBYJK7A,4044
93
93
  anemoi/datasets/create/sources/source.py,sha256=x8k---A2_3AglYqNsXLlv1ti4f9n_gVKmmqtyQGLPTs,2117
94
94
  anemoi/datasets/create/sources/tendencies.py,sha256=saHGYl-MnvBEeZX-n1zgT8lehA7LC2G5dMNnxklI9-U,5590
@@ -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.24.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
140
+ anemoi_datasets-0.5.24.dist-info/METADATA,sha256=VEJ0AfuyX7vg00NEIQUDecbv3eOHiTTtT1VE_zlAlYI,16107
141
+ anemoi_datasets-0.5.24.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
142
+ anemoi_datasets-0.5.24.dist-info/entry_points.txt,sha256=yR-o-4uiPEA_GLBL81SkMYnUoxq3CAV3hHulQiRtGG0,66
143
+ anemoi_datasets-0.5.24.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
144
+ anemoi_datasets-0.5.24.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5