anemoi-utils 0.3.2__py3-none-any.whl → 0.3.3__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/text.py +6 -7
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/METADATA +1 -1
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/RECORD +8 -8
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/LICENSE +0 -0
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/WHEEL +0 -0
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/entry_points.txt +0 -0
- {anemoi_utils-0.3.2.dist-info → anemoi_utils-0.3.3.dist-info}/top_level.txt +0 -0
anemoi/utils/_version.py
CHANGED
anemoi/utils/text.py
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
"""Text utilities"""
|
|
9
9
|
|
|
10
|
-
import sys
|
|
11
10
|
from collections import defaultdict
|
|
12
11
|
|
|
13
12
|
# https://en.wikipedia.org/wiki/Box-drawing_character
|
|
@@ -143,13 +142,13 @@ class Tree:
|
|
|
143
142
|
self._kids.append(node)
|
|
144
143
|
return node
|
|
145
144
|
|
|
146
|
-
def print(self
|
|
145
|
+
def print(self):
|
|
147
146
|
padding = []
|
|
148
147
|
|
|
149
148
|
while self._factorise():
|
|
150
149
|
pass
|
|
151
150
|
|
|
152
|
-
self._print(padding
|
|
151
|
+
self._print(padding)
|
|
153
152
|
|
|
154
153
|
def _leaves(self, result):
|
|
155
154
|
if self.is_leaf:
|
|
@@ -206,21 +205,21 @@ class Tree:
|
|
|
206
205
|
|
|
207
206
|
return result
|
|
208
207
|
|
|
209
|
-
def _print(self, padding
|
|
208
|
+
def _print(self, padding):
|
|
210
209
|
for i, p in enumerate(padding[:-1]):
|
|
211
210
|
if p == " └":
|
|
212
211
|
padding[i] = " "
|
|
213
212
|
if p == " ├":
|
|
214
213
|
padding[i] = " │"
|
|
215
214
|
if padding:
|
|
216
|
-
print(f"{''.join(padding)}─{self._text}"
|
|
215
|
+
print(f"{''.join(padding)}─{self._text}")
|
|
217
216
|
else:
|
|
218
|
-
print(self._text
|
|
217
|
+
print(self._text)
|
|
219
218
|
padding.append(" ")
|
|
220
219
|
for i, k in enumerate(self._kids):
|
|
221
220
|
sep = " ├" if i < len(self._kids) - 1 else " └"
|
|
222
221
|
padding[-1] = sep
|
|
223
|
-
k._print(padding
|
|
222
|
+
k._print(padding)
|
|
224
223
|
|
|
225
224
|
padding.pop()
|
|
226
225
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: anemoi-utils
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
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,6 +1,6 @@
|
|
|
1
1
|
anemoi/utils/__init__.py,sha256=zZZpbKIoGWwdCOuo6YSruLR7C0GzvzI1Wzhyqaa0K7M,456
|
|
2
2
|
anemoi/utils/__main__.py,sha256=cLA2PidDTOUHaDGzd0_E5iioKYNe-PSTv567Y2fuwQk,723
|
|
3
|
-
anemoi/utils/_version.py,sha256=
|
|
3
|
+
anemoi/utils/_version.py,sha256=FKnJIExgNrZG2xJ0y_dGNBpxGbGBYylvfat-jHhLUuM,411
|
|
4
4
|
anemoi/utils/caching.py,sha256=HrC9aFHlcCTaM2Z5u0ivGIXz7eFu35UQQhUuwwuG2pk,1743
|
|
5
5
|
anemoi/utils/checkpoints.py,sha256=1_3mg4B-ykTVfIvIUEv7IxGyREx_ZcilVbB3U-V6O6I,5165
|
|
6
6
|
anemoi/utils/cli.py,sha256=d3TT9WSm6TDkbaJ9fL74wWG91Y27a9Uh17fPM4SomTs,3300
|
|
@@ -10,15 +10,15 @@ anemoi/utils/grib.py,sha256=gVfo4KYQv31iRyoqRDwk5tiqZDUgOIvhag_kO0qjYD0,3067
|
|
|
10
10
|
anemoi/utils/humanize.py,sha256=LD6dGnqChxA5j3tMhSybsAGRQzi33d_qS9pUoUHubkc,10330
|
|
11
11
|
anemoi/utils/provenance.py,sha256=v54L9jF1JgYcclOhg3iojRl1v3ajbiWz_oc289xTgO4,9574
|
|
12
12
|
anemoi/utils/s3.py,sha256=HG3YulSwBvutTOZe0vY9oDkXExtUCcr26U9WObzl2I4,2024
|
|
13
|
-
anemoi/utils/text.py,sha256=
|
|
13
|
+
anemoi/utils/text.py,sha256=4Zlc4r9dzRjkKL9xqp2vuQsoJY15bJ3y_Xv3YW_XsmU,8510
|
|
14
14
|
anemoi/utils/timer.py,sha256=JKOgFkpJxmVRn57DEBolmTGwr25P-ePTWASBd8CLeqM,972
|
|
15
15
|
anemoi/utils/commands/__init__.py,sha256=qAybFZPBBQs0dyx7dZ3X5JsLpE90pwrqt1vSV7cqEIw,706
|
|
16
16
|
anemoi/utils/commands/checkpoint.py,sha256=SEnAizU3WklqMXUjmIh4eNrgBVwmheKG9gEBS90zwYU,1741
|
|
17
17
|
anemoi/utils/mars/__init__.py,sha256=RAeY8gJ7ZvsPlcIvrQ4fy9xVHs3SphTAPw_XJDtNIKo,1750
|
|
18
18
|
anemoi/utils/mars/mars.yaml,sha256=R0dujp75lLA4wCWhPeOQnzJ45WZAYLT8gpx509cBFlc,66
|
|
19
|
-
anemoi_utils-0.3.
|
|
20
|
-
anemoi_utils-0.3.
|
|
21
|
-
anemoi_utils-0.3.
|
|
22
|
-
anemoi_utils-0.3.
|
|
23
|
-
anemoi_utils-0.3.
|
|
24
|
-
anemoi_utils-0.3.
|
|
19
|
+
anemoi_utils-0.3.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
20
|
+
anemoi_utils-0.3.3.dist-info/METADATA,sha256=3MtgyTflfoV8qhyRDDJfrcDNPz92sPtcULTFUJB4iB8,15513
|
|
21
|
+
anemoi_utils-0.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
22
|
+
anemoi_utils-0.3.3.dist-info/entry_points.txt,sha256=LENOkn88xzFQo-V59AKoA_F_cfYQTJYtrNTtf37YgHY,60
|
|
23
|
+
anemoi_utils-0.3.3.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
|
|
24
|
+
anemoi_utils-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|