anemoi-utils 0.4.33__py3-none-any.whl → 0.4.34__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.

Potentially problematic release.


This version of anemoi-utils might be problematic. Click here for more details.

anemoi/utils/_version.py CHANGED
@@ -1,7 +1,14 @@
1
1
  # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
3
 
4
- __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
5
12
 
6
13
  TYPE_CHECKING = False
7
14
  if TYPE_CHECKING:
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
9
16
  from typing import Union
10
17
 
11
18
  VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
12
20
  else:
13
21
  VERSION_TUPLE = object
22
+ COMMIT_ID = object
14
23
 
15
24
  version: str
16
25
  __version__: str
17
26
  __version_tuple__: VERSION_TUPLE
18
27
  version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
19
30
 
20
- __version__ = version = '0.4.33'
21
- __version_tuple__ = version_tuple = (0, 4, 33)
31
+ __version__ = version = '0.4.34'
32
+ __version_tuple__ = version_tuple = (0, 4, 34)
33
+
34
+ __commit_id__ = commit_id = None
anemoi/utils/config.py CHANGED
@@ -206,7 +206,7 @@ class DotDict(dict):
206
206
  super().__setitem__(key, value)
207
207
 
208
208
  def warn_on_mutation(self, key):
209
- warnings.warn("Mofifying and instance of DotDict(). This class is intended to be immutable.")
209
+ warnings.warn("Modifying an instance of DotDict(). This class is intended to be immutable.")
210
210
 
211
211
  def __repr__(self) -> str:
212
212
  """Return a string representation of the DotDict.
anemoi/utils/testing.py CHANGED
@@ -240,17 +240,6 @@ def _missing_packages(*names: str) -> list[str]:
240
240
  return missing
241
241
 
242
242
 
243
- def _run_slow_tests() -> bool:
244
- """Check if the SLOW_TESTS environment variable is set.
245
-
246
- Returns
247
- -------
248
- bool
249
- True if the SLOW_TESTS environment variable is set, False otherwise.
250
- """
251
- return bool(int(os.environ.get("SLOW_TESTS", 0)))
252
-
253
-
254
243
  @lru_cache(maxsize=None)
255
244
  def _offline() -> bool:
256
245
  """Check if we are offline."""
@@ -265,7 +254,6 @@ def _offline() -> bool:
265
254
 
266
255
 
267
256
  skip_if_offline = pytest.mark.skipif(_offline(), reason="No internet connection")
268
- skip_slow_tests = pytest.mark.skipif(not _run_slow_tests(), reason="Skipping slow tests")
269
257
 
270
258
 
271
259
  def skip_missing_packages(*names: str) -> pytest.MarkDecorator:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anemoi-utils
3
- Version: 0.4.33
3
+ Version: 0.4.34
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
@@ -1,12 +1,12 @@
1
1
  anemoi/utils/__init__.py,sha256=G1BlBl5IGz1AKHYkEUNT5x69WOTV0ALEe8appAdYr38,806
2
2
  anemoi/utils/__main__.py,sha256=6LlE4MYrPvqqrykxXh7XMi50UZteUY59NeM8P9Zs2dU,910
3
3
  anemoi/utils/_environment.py,sha256=sdi0h0uBMU4hhjhTi3ZitLZtrV7sRs_8KqfVeakJFWY,1400
4
- anemoi/utils/_version.py,sha256=mjzqdR2aEWjoUOVFIQeef0uCWnfAw-qUUoZHmfz-cBU,513
4
+ anemoi/utils/_version.py,sha256=jwG9gRi6TMtEmZUeRVNXtD3h05Le4QjrfaURHP8y67g,706
5
5
  anemoi/utils/caching.py,sha256=wKkpsACniNCFK1nc5Tw18EAv9FJGYdhs5p8qsr8i_FI,6153
6
6
  anemoi/utils/checkpoints.py,sha256=U197rvPUD1_XBA-VphgA0staFkgx2TzDoBdbnch-I7Y,9550
7
7
  anemoi/utils/cli.py,sha256=p4sup42X7JW47AKM3IQn4_0-KUAlc5ceBMj8FYmSdlc,6500
8
8
  anemoi/utils/compatibility.py,sha256=Yx4Yj3xL5q0PxYccM3N5qGeQxTtEPfaCz4EqjrS7CUc,2175
9
- anemoi/utils/config.py,sha256=qetw-usma6_WZmyTqYMh0tXvlJFeIMDyDFYdPmo6YqE,18155
9
+ anemoi/utils/config.py,sha256=ttzyq8L4dYYdqMwAD8XE7rzMXXpiA7QOWPuD1Xkq1_s,18154
10
10
  anemoi/utils/dates.py,sha256=35KyiyFW8SeWLIm7VeMKBJvNvl2nVu-edRWLX-04uT4,17307
11
11
  anemoi/utils/devtools.py,sha256=W3OBu96MkXRIl7Qh1SE5Zd6aB1R0QlnmlrlpBYM0fVY,3527
12
12
  anemoi/utils/grib.py,sha256=eHz3BVoSB4O-3RARxXFcKRSWtYVbt6lqoLBcssHOp70,3543
@@ -20,7 +20,7 @@ anemoi/utils/rules.py,sha256=YtJcwkyBJwPjHlM4ZM6icGJXLCRZmcuHCXc-SSR8wgw,6856
20
20
  anemoi/utils/s3.py,sha256=bBVlfg3R4sJYOfgrSkhX7MxSVUQEur4LjE86ug8vkNw,4052
21
21
  anemoi/utils/sanitise.py,sha256=XkQzibDbu-VFJkJC4WcB9ovkcTkVAynXtkn1Tlc2CC4,4019
22
22
  anemoi/utils/sanitize.py,sha256=43ZKDcfVpeXSsJ9TFEc9aZnD6oe2cUh151XnDspM98M,462
23
- anemoi/utils/testing.py,sha256=MKKX43mDwLhEeuMaTt05TFvXvSq6j8yW5jWENKoSiBY,11145
23
+ anemoi/utils/testing.py,sha256=u6VyarS9li5X_kqZr6hrqvwEAVjtgY9ZYdIyIsv7kyQ,10789
24
24
  anemoi/utils/text.py,sha256=9M7VepzZLL-jGfFGXDqNxjwpNl7tiU8arkkOqhT9iSE,14361
25
25
  anemoi/utils/timer.py,sha256=_leKMYza2faM7JKlGE7LCNy13rbdPnwaCF7PSrI_NmI,3895
26
26
  anemoi/utils/commands/__init__.py,sha256=5u_6EwdqYczIAgJfCwRSyQAYFEqh2ZuHHT57g9g7sdI,808
@@ -40,9 +40,9 @@ anemoi/utils/remote/s3.py,sha256=BWI4bUmZHBvvqU6idewyg4ApxTlhCtX3cpwjeheCSo4,213
40
40
  anemoi/utils/remote/ssh.py,sha256=xNtsawh8okytCKRehkRCVExbHZj-CRUQNormEHglfuw,8088
41
41
  anemoi/utils/schemas/__init__.py,sha256=nkinKlsPLPXEjfTYQT1mpKC4cvs-14w_zBkDRxakwxw,698
42
42
  anemoi/utils/schemas/errors.py,sha256=lgOXzVTYzAE0qWQf3OZ42vCWixv8lilSqLLhzARBmvI,1831
43
- anemoi_utils-0.4.33.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
44
- anemoi_utils-0.4.33.dist-info/METADATA,sha256=PQ-uw9ywsO0l6gQVfSHCQx29MKaBMbRa37xrsp6ZQ4U,15668
45
- anemoi_utils-0.4.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- anemoi_utils-0.4.33.dist-info/entry_points.txt,sha256=LENOkn88xzFQo-V59AKoA_F_cfYQTJYtrNTtf37YgHY,60
47
- anemoi_utils-0.4.33.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
48
- anemoi_utils-0.4.33.dist-info/RECORD,,
43
+ anemoi_utils-0.4.34.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
44
+ anemoi_utils-0.4.34.dist-info/METADATA,sha256=2zvSY1iHHVcvLpaobfHCApsjwPUqeeg1UAy2FX0twWQ,15668
45
+ anemoi_utils-0.4.34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ anemoi_utils-0.4.34.dist-info/entry_points.txt,sha256=LENOkn88xzFQo-V59AKoA_F_cfYQTJYtrNTtf37YgHY,60
47
+ anemoi_utils-0.4.34.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
48
+ anemoi_utils-0.4.34.dist-info/RECORD,,