anemoi-utils 0.4.6__py3-none-any.whl → 0.4.7__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 +2 -2
- anemoi/utils/config.py +1 -1
- anemoi/utils/remote/ssh.py +3 -0
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/METADATA +1 -1
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/RECORD +9 -9
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/LICENSE +0 -0
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/WHEEL +0 -0
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/entry_points.txt +0 -0
- {anemoi_utils-0.4.6.dist-info → anemoi_utils-0.4.7.dist-info}/top_level.txt +0 -0
anemoi/utils/_version.py
CHANGED
anemoi/utils/config.py
CHANGED
|
@@ -207,7 +207,7 @@ def load_any_dict_format(path) -> dict:
|
|
|
207
207
|
return tomllib.load(f)
|
|
208
208
|
except (json.JSONDecodeError, yaml.YAMLError, tomllib.TOMLDecodeError) as e:
|
|
209
209
|
LOG.warning(f"Failed to parse config file {path}", exc_info=e)
|
|
210
|
-
|
|
210
|
+
raise ValueError(f"Failed to parse config file {path} [{e}]")
|
|
211
211
|
|
|
212
212
|
return open(path).read()
|
|
213
213
|
|
anemoi/utils/remote/ssh.py
CHANGED
|
@@ -44,6 +44,9 @@ class SshBaseUpload(BaseUpload):
|
|
|
44
44
|
hostnames = hostname.split("+")
|
|
45
45
|
hostname = hostnames[random.randint(0, len(hostnames) - 1)]
|
|
46
46
|
|
|
47
|
+
if ".." in path.split("/"):
|
|
48
|
+
raise Exception("Path contains suspicious '..' : {target}")
|
|
49
|
+
|
|
47
50
|
return hostname, path
|
|
48
51
|
|
|
49
52
|
def get_temporary_target(self, target, pattern):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: anemoi-utils
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.7
|
|
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=0u0eIdu5-H1frf6V4KHpNmlh_SS-bJnxjzIejlsLqdw,702
|
|
2
2
|
anemoi/utils/__main__.py,sha256=5NW2A3OgTimB4ptwYThivIRSeCrvabMuvnr8mmnVx0E,715
|
|
3
|
-
anemoi/utils/_version.py,sha256=
|
|
3
|
+
anemoi/utils/_version.py,sha256=aiv6B46XdwSU0l915ePx2JQG3yol6FO4m6wTlI4ZKN0,411
|
|
4
4
|
anemoi/utils/caching.py,sha256=0cznpvaaox14NSVi-Q3PqumfuGtXo0YNcEFwDPxvMZw,1948
|
|
5
5
|
anemoi/utils/checkpoints.py,sha256=q8QqKlZ6qChjzEfq7KM1gVXuyqgsVRGIb4dJFtkGk58,7774
|
|
6
6
|
anemoi/utils/cli.py,sha256=rmMP60VY3em99rQP6TCrKibMngWwVe5h_0GDcf16c5U,4117
|
|
7
7
|
anemoi/utils/compatibility.py,sha256=0_nIcbdQbNMrS6AkqrBgJGJlSJXW8R23ncaZaDwdJ4c,2190
|
|
8
|
-
anemoi/utils/config.py,sha256=
|
|
8
|
+
anemoi/utils/config.py,sha256=At0k_NtbJ74S72sEZIYgdEaLf5KCEvxIJi9FGLcUwrE,9872
|
|
9
9
|
anemoi/utils/dates.py,sha256=wwYD5_QI7EWY_jhpENNYtL5O7fjwYkzmqHkNoayvmrY,12452
|
|
10
10
|
anemoi/utils/grib.py,sha256=zBICyOsYtR_9px1C5UDT6wL_D6kiIhUi_00kjFmas5c,3047
|
|
11
11
|
anemoi/utils/hindcasts.py,sha256=TEYDmrZUajuhp_dfWeg6z5c6XfntE-mwugUQJyAgUco,1419
|
|
@@ -23,10 +23,10 @@ anemoi/utils/mars/__init__.py,sha256=kvbu-gSaYI9jSNEzfQltrtHPVIameYGoLjOJKwI7x_U
|
|
|
23
23
|
anemoi/utils/mars/mars.yaml,sha256=R0dujp75lLA4wCWhPeOQnzJ45WZAYLT8gpx509cBFlc,66
|
|
24
24
|
anemoi/utils/remote/__init__.py,sha256=nLoXHj0Jp3YrGSwb0xkGyeuquDolWiiSBtGPJJX8gbM,11481
|
|
25
25
|
anemoi/utils/remote/s3.py,sha256=CNEYq8P7o7lSB1acUp_GPU8c-WrEa7Cduv3rGw4Kba0,11924
|
|
26
|
-
anemoi/utils/remote/ssh.py,sha256=
|
|
27
|
-
anemoi_utils-0.4.
|
|
28
|
-
anemoi_utils-0.4.
|
|
29
|
-
anemoi_utils-0.4.
|
|
30
|
-
anemoi_utils-0.4.
|
|
31
|
-
anemoi_utils-0.4.
|
|
32
|
-
anemoi_utils-0.4.
|
|
26
|
+
anemoi/utils/remote/ssh.py,sha256=zKya93KOMXTXgiVodb31BUuSapjY_I4yrzULO4NDOZ4,4655
|
|
27
|
+
anemoi_utils-0.4.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
28
|
+
anemoi_utils-0.4.7.dist-info/METADATA,sha256=lIwSwWWpOJ14abGtqR4emsi5cjgIcZDLUzT5UHr5Ong,15222
|
|
29
|
+
anemoi_utils-0.4.7.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
30
|
+
anemoi_utils-0.4.7.dist-info/entry_points.txt,sha256=LENOkn88xzFQo-V59AKoA_F_cfYQTJYtrNTtf37YgHY,60
|
|
31
|
+
anemoi_utils-0.4.7.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
|
|
32
|
+
anemoi_utils-0.4.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|