hestia-earth-utils 0.16.3__py3-none-any.whl → 0.16.4__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.
- hestia_earth/utils/csv_utils.py +3 -5
- hestia_earth/utils/lookup.py +0 -3
- hestia_earth/utils/version.py +1 -1
- {hestia_earth_utils-0.16.3.dist-info → hestia_earth_utils-0.16.4.dist-info}/METADATA +1 -1
- {hestia_earth_utils-0.16.3.dist-info → hestia_earth_utils-0.16.4.dist-info}/RECORD +9 -9
- {hestia_earth_utils-0.16.3.data → hestia_earth_utils-0.16.4.data}/scripts/hestia-format-upload +0 -0
- {hestia_earth_utils-0.16.3.data → hestia_earth_utils-0.16.4.data}/scripts/hestia-pivot-csv +0 -0
- {hestia_earth_utils-0.16.3.dist-info → hestia_earth_utils-0.16.4.dist-info}/WHEEL +0 -0
- {hestia_earth_utils-0.16.3.dist-info → hestia_earth_utils-0.16.4.dist-info}/top_level.txt +0 -0
hestia_earth/utils/csv_utils.py
CHANGED
|
@@ -26,12 +26,10 @@ def _text_to_csv(csv_content: str):
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
def _csv_reader_converter(field_str_bytes):
|
|
29
|
-
field_str = field_str_bytes if isinstance(field_str_bytes, str) else field_str_bytes.decode('utf-8')
|
|
30
|
-
reader = _text_to_csv(field_str)
|
|
31
|
-
|
|
32
29
|
try:
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
field_str = field_str_bytes if isinstance(field_str_bytes, str) else field_str_bytes.decode('utf-8')
|
|
31
|
+
return _replace_missing_values(field_str)
|
|
32
|
+
except Exception:
|
|
35
33
|
return str(_MISSING)
|
|
36
34
|
|
|
37
35
|
|
hestia_earth/utils/lookup.py
CHANGED
|
@@ -2,7 +2,6 @@ from functools import reduce
|
|
|
2
2
|
from typing import Union
|
|
3
3
|
import requests
|
|
4
4
|
import numpy
|
|
5
|
-
import traceback
|
|
6
5
|
|
|
7
6
|
from .storage import _load_from_storage
|
|
8
7
|
from .request import request_url, web_url
|
|
@@ -92,8 +91,6 @@ def download_lookup(filename: str, keep_in_memory: bool = True, build_index: boo
|
|
|
92
91
|
try:
|
|
93
92
|
return _memory_wrapper(filename, load) if keep_in_memory else load()
|
|
94
93
|
except Exception:
|
|
95
|
-
stack = traceback.format_exc()
|
|
96
|
-
print(stack)
|
|
97
94
|
return None
|
|
98
95
|
|
|
99
96
|
|
hestia_earth/utils/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = '0.16.
|
|
1
|
+
VERSION = '0.16.4'
|
|
@@ -2,12 +2,12 @@ hestia_earth/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
2
2
|
hestia_earth/utils/api.py,sha256=y0gw5pCCHNnFIhM62Hok_5eDtH3QDAZdkye_1mANMNs,9654
|
|
3
3
|
hestia_earth/utils/blank_node.py,sha256=1wc9zUkOvFhJS-YmuKexfIdYxfsp5KyJczLmHlW559Q,7375
|
|
4
4
|
hestia_earth/utils/calculation_status.py,sha256=X7lbgVMD9luH1gj9lEcxd3_P2-u7e8ZPGCvX1czPZUo,2238
|
|
5
|
-
hestia_earth/utils/csv_utils.py,sha256=
|
|
5
|
+
hestia_earth/utils/csv_utils.py,sha256=MXE8ZqLo02aGaGVebEVWR_hPBP8ADINcJixn_RgDlxs,1938
|
|
6
6
|
hestia_earth/utils/cycle.py,sha256=rFLRL9X4KQ1UrE6fEPA_gV8KmwzrZpR3Ce56zg41lRk,1326
|
|
7
7
|
hestia_earth/utils/date.py,sha256=SPQ69uxHiv1o3BqIkBKkM5XX_CmS20CB7g6u2rhsdh8,1807
|
|
8
8
|
hestia_earth/utils/descriptive_stats.py,sha256=EMVwFvg2OnZgKRAfireAoWY2EbrSvqR0V0bK9B53p28,1583
|
|
9
9
|
hestia_earth/utils/emission.py,sha256=BhBitooLTxZSh82S982v2QfPxxTF1kmGClG_uHyWdz4,1981
|
|
10
|
-
hestia_earth/utils/lookup.py,sha256=
|
|
10
|
+
hestia_earth/utils/lookup.py,sha256=XKmxFEH9o1Rhi4oTLteQnMAwNXiObjSX7pMfrUw8q1I,9522
|
|
11
11
|
hestia_earth/utils/lookup_utils.py,sha256=_k3RZ1pK-gw7jq8wn9HrPWfDl4FlEWRb8bXmgaARu0w,6716
|
|
12
12
|
hestia_earth/utils/model.py,sha256=uUcrF07XmBzqLni8VSaP0HoebJnQ57kk0EOmhwYMbfI,4637
|
|
13
13
|
hestia_earth/utils/pipeline.py,sha256=O-6DPtK0U1lJ51LFGa1gM6pjkBJUfxOjNjY8LxQPXV0,9588
|
|
@@ -16,7 +16,7 @@ hestia_earth/utils/stats.py,sha256=4t3op10xDJbGxWJEY1Jtyl302PYWyMFwLpsSkMlzQn8,3
|
|
|
16
16
|
hestia_earth/utils/table.py,sha256=MOJDo5fQPRDogAty_UXbO9-EXFwz97m0f7--mOM17lQ,2363
|
|
17
17
|
hestia_earth/utils/term.py,sha256=6LiUSc6KX3IOkfWF6fYkQ2tENCO8ENljcdDypxU6WtA,1060
|
|
18
18
|
hestia_earth/utils/tools.py,sha256=9GaUJwxL-CTzEOGnRFkUQDVFelPevQSxXrf25vssCVo,4990
|
|
19
|
-
hestia_earth/utils/version.py,sha256=
|
|
19
|
+
hestia_earth/utils/version.py,sha256=7beGZMTXE5jj-oFnFWj3G6qwJ6yzFEAre86VzGZDUvU,19
|
|
20
20
|
hestia_earth/utils/pivot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
hestia_earth/utils/pivot/_shared.py,sha256=JnyIOzpans45DE2hSa9-4yvNhq8t08lx1IAWGJi6WPQ,1397
|
|
22
22
|
hestia_earth/utils/pivot/pivot_csv.py,sha256=7f6kMqeb1b3RKANLGeDgVu8G5WC-vXIijHnsJhO-CjI,12022
|
|
@@ -26,9 +26,9 @@ hestia_earth/utils/storage/_azure_client.py,sha256=sevCZni04eknMql2DgUsWG23f7u0K
|
|
|
26
26
|
hestia_earth/utils/storage/_local_client.py,sha256=IbzziUKY0QS3ybHFfgEpELqvafa7hQnZ-DdGdjQuypE,515
|
|
27
27
|
hestia_earth/utils/storage/_s3_client.py,sha256=B2yTsf-VfHcRLCKTMes4S_nCXxrZad9umyZx3b5Pu_c,3181
|
|
28
28
|
hestia_earth/utils/storage/_sns_client.py,sha256=LowUatj78Egu6_Id6Rr7hZjfZx1WguS3lozB3yAwSps,347
|
|
29
|
-
hestia_earth_utils-0.16.
|
|
30
|
-
hestia_earth_utils-0.16.
|
|
31
|
-
hestia_earth_utils-0.16.
|
|
32
|
-
hestia_earth_utils-0.16.
|
|
33
|
-
hestia_earth_utils-0.16.
|
|
34
|
-
hestia_earth_utils-0.16.
|
|
29
|
+
hestia_earth_utils-0.16.4.data/scripts/hestia-format-upload,sha256=IhLAHHPJqRgUcht-M_EUEsRMbRbMfshig07o488zscM,703
|
|
30
|
+
hestia_earth_utils-0.16.4.data/scripts/hestia-pivot-csv,sha256=0YBuGuyPO8rytod6iwWEKiQdSlr9JLuD001k6U5t6no,1163
|
|
31
|
+
hestia_earth_utils-0.16.4.dist-info/METADATA,sha256=_bUWrWyGlmLGQ0xS5jBrcbLWYxIlaXf7Eo2UMBk4RBs,2030
|
|
32
|
+
hestia_earth_utils-0.16.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
hestia_earth_utils-0.16.4.dist-info/top_level.txt,sha256=q0QxKEYx9uLpAD5ZtC7Ypq29smEPfOzEAn7Xv8XHGOQ,13
|
|
34
|
+
hestia_earth_utils-0.16.4.dist-info/RECORD,,
|
{hestia_earth_utils-0.16.3.data → hestia_earth_utils-0.16.4.data}/scripts/hestia-format-upload
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|