anemoi-utils 0.4.30__py3-none-any.whl → 0.4.31__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 +16 -3
- anemoi/utils/config.py +3 -6
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/METADATA +1 -1
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/RECORD +8 -8
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/WHEEL +0 -0
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/entry_points.txt +0 -0
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/licenses/LICENSE +0 -0
- {anemoi_utils-0.4.30.dist-info → anemoi_utils-0.4.31.dist-info}/top_level.txt +0 -0
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__ = [
|
|
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.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 4,
|
|
31
|
+
__version__ = version = '0.4.31'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 4, 31)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
anemoi/utils/config.py
CHANGED
|
@@ -15,6 +15,7 @@ import json
|
|
|
15
15
|
import logging
|
|
16
16
|
import os
|
|
17
17
|
import threading
|
|
18
|
+
import warnings
|
|
18
19
|
from typing import Any
|
|
19
20
|
|
|
20
21
|
import yaml
|
|
@@ -202,12 +203,8 @@ class DotDict(dict):
|
|
|
202
203
|
value = self.convert_to_nested_dot_dict(value)
|
|
203
204
|
super().__setitem__(key, value)
|
|
204
205
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
LOG.warning(
|
|
208
|
-
f"Config key '{key}' was modified after instantiation. "
|
|
209
|
-
"This is bad practice — configs are intended to be immutable. "
|
|
210
|
-
)
|
|
206
|
+
def warn_on_mutation(self, key):
|
|
207
|
+
warnings.warn("Mofifying and instance of DotDict(). This class is intended to be immutable.")
|
|
211
208
|
|
|
212
209
|
def __repr__(self) -> str:
|
|
213
210
|
"""Return a string representation of the DotDict.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anemoi-utils
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.31
|
|
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,11 +1,11 @@
|
|
|
1
1
|
anemoi/utils/__init__.py,sha256=uVhpF-VjIl_4mMywOVtgTutgsdIsqz-xdkwxeMhzuag,730
|
|
2
2
|
anemoi/utils/__main__.py,sha256=6LlE4MYrPvqqrykxXh7XMi50UZteUY59NeM8P9Zs2dU,910
|
|
3
|
-
anemoi/utils/_version.py,sha256=
|
|
3
|
+
anemoi/utils/_version.py,sha256=bvzZRPAHPCx967KBj1M9nnZf0LAd256lffiAVfk3-ok,706
|
|
4
4
|
anemoi/utils/caching.py,sha256=wKkpsACniNCFK1nc5Tw18EAv9FJGYdhs5p8qsr8i_FI,6153
|
|
5
5
|
anemoi/utils/checkpoints.py,sha256=U197rvPUD1_XBA-VphgA0staFkgx2TzDoBdbnch-I7Y,9550
|
|
6
6
|
anemoi/utils/cli.py,sha256=p4sup42X7JW47AKM3IQn4_0-KUAlc5ceBMj8FYmSdlc,6500
|
|
7
7
|
anemoi/utils/compatibility.py,sha256=Yx4Yj3xL5q0PxYccM3N5qGeQxTtEPfaCz4EqjrS7CUc,2175
|
|
8
|
-
anemoi/utils/config.py,sha256=
|
|
8
|
+
anemoi/utils/config.py,sha256=OsRWUNIezIbHpT91ESB53SzNmXURpDNYXhY8q74S_Ww,17911
|
|
9
9
|
anemoi/utils/dates.py,sha256=35KyiyFW8SeWLIm7VeMKBJvNvl2nVu-edRWLX-04uT4,17307
|
|
10
10
|
anemoi/utils/devtools.py,sha256=W3OBu96MkXRIl7Qh1SE5Zd6aB1R0QlnmlrlpBYM0fVY,3527
|
|
11
11
|
anemoi/utils/grib.py,sha256=eHz3BVoSB4O-3RARxXFcKRSWtYVbt6lqoLBcssHOp70,3543
|
|
@@ -39,9 +39,9 @@ anemoi/utils/remote/s3.py,sha256=BWI4bUmZHBvvqU6idewyg4ApxTlhCtX3cpwjeheCSo4,213
|
|
|
39
39
|
anemoi/utils/remote/ssh.py,sha256=xNtsawh8okytCKRehkRCVExbHZj-CRUQNormEHglfuw,8088
|
|
40
40
|
anemoi/utils/schemas/__init__.py,sha256=nkinKlsPLPXEjfTYQT1mpKC4cvs-14w_zBkDRxakwxw,698
|
|
41
41
|
anemoi/utils/schemas/errors.py,sha256=lgOXzVTYzAE0qWQf3OZ42vCWixv8lilSqLLhzARBmvI,1831
|
|
42
|
-
anemoi_utils-0.4.
|
|
43
|
-
anemoi_utils-0.4.
|
|
44
|
-
anemoi_utils-0.4.
|
|
45
|
-
anemoi_utils-0.4.
|
|
46
|
-
anemoi_utils-0.4.
|
|
47
|
-
anemoi_utils-0.4.
|
|
42
|
+
anemoi_utils-0.4.31.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
|
|
43
|
+
anemoi_utils-0.4.31.dist-info/METADATA,sha256=EcYf4exSKrdV2BR1W4xJ3sH6e5FMn8L2KOCnL-4fmrI,15668
|
|
44
|
+
anemoi_utils-0.4.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
45
|
+
anemoi_utils-0.4.31.dist-info/entry_points.txt,sha256=LENOkn88xzFQo-V59AKoA_F_cfYQTJYtrNTtf37YgHY,60
|
|
46
|
+
anemoi_utils-0.4.31.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
|
|
47
|
+
anemoi_utils-0.4.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|