ert 17.1.5__py3-none-any.whl → 17.1.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.
- ert/shared/version.py +3 -3
- ert/storage/local_storage.py +3 -1
- ert/storage/migration/to17.py +42 -0
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/METADATA +1 -1
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/RECORD +9 -8
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/WHEEL +0 -0
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/entry_points.txt +0 -0
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/licenses/COPYING +0 -0
- {ert-17.1.5.dist-info → ert-17.1.7.dist-info}/top_level.txt +0 -0
ert/shared/version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '17.1.
|
|
32
|
-
__version_tuple__ = version_tuple = (17, 1,
|
|
31
|
+
__version__ = version = '17.1.7'
|
|
32
|
+
__version_tuple__ = version_tuple = (17, 1, 7)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'gf916ce03e'
|
ert/storage/local_storage.py
CHANGED
|
@@ -30,7 +30,7 @@ from .realization_storage_state import RealizationStorageState
|
|
|
30
30
|
|
|
31
31
|
logger = logging.getLogger(__name__)
|
|
32
32
|
|
|
33
|
-
_LOCAL_STORAGE_VERSION =
|
|
33
|
+
_LOCAL_STORAGE_VERSION = 17
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
class _Migrations(BaseModel):
|
|
@@ -498,6 +498,7 @@ class LocalStorage(BaseMode):
|
|
|
498
498
|
to14,
|
|
499
499
|
to15,
|
|
500
500
|
to16,
|
|
501
|
+
to17,
|
|
501
502
|
)
|
|
502
503
|
|
|
503
504
|
try:
|
|
@@ -543,6 +544,7 @@ class LocalStorage(BaseMode):
|
|
|
543
544
|
13: to14,
|
|
544
545
|
14: to15,
|
|
545
546
|
15: to16,
|
|
547
|
+
16: to17,
|
|
546
548
|
}
|
|
547
549
|
for from_version in range(version, _LOCAL_STORAGE_VERSION):
|
|
548
550
|
migrations[from_version].migrate(self.path)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
info = "Migrate realization error type from IntEnum to StrEnum"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def migrate_realization_errors_json_content(
|
|
9
|
+
error_json: dict[str, Any],
|
|
10
|
+
) -> dict[str, Any]:
|
|
11
|
+
int_to_str = {
|
|
12
|
+
1: "undefined",
|
|
13
|
+
2: "parameters_loaded",
|
|
14
|
+
4: "responses_loaded",
|
|
15
|
+
8: "failure_in_current",
|
|
16
|
+
16: "failure_in_parent",
|
|
17
|
+
# To cover cases who ran with storage version 16
|
|
18
|
+
# and StrEnum _RealizationStorageState
|
|
19
|
+
"undefined": "undefined",
|
|
20
|
+
"parameters_loaded": "parameters_loaded",
|
|
21
|
+
"responses_loaded": "responses_loaded",
|
|
22
|
+
"failure_in_current": "failure_in_current",
|
|
23
|
+
"failure_in_parent": "failure_in_parent",
|
|
24
|
+
}
|
|
25
|
+
return error_json | {"type": int_to_str[error_json["type"]]}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def migrate_realization_errors(path: Path) -> None:
|
|
29
|
+
for realization_error in path.glob("ensembles/*/realization-*/error.json"):
|
|
30
|
+
old_error_json_content = json.loads(
|
|
31
|
+
realization_error.read_text(encoding="utf-8")
|
|
32
|
+
)
|
|
33
|
+
realization_error.write_text(
|
|
34
|
+
json.dumps(
|
|
35
|
+
migrate_realization_errors_json_content(old_error_json_content),
|
|
36
|
+
indent=2,
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def migrate(path: Path) -> None:
|
|
42
|
+
migrate_realization_errors(path)
|
|
@@ -397,7 +397,7 @@ ert/services/storage_service.py,sha256=3hiQ5MVDD1ozFgndcy6HadK0qPVS1FAmL4P5p2LFf
|
|
|
397
397
|
ert/services/webviz_ert_service.py,sha256=J5vznqb_-DjlDMOze7tdvuBE4GWEPgJ5dIIXvRLKd0Y,650
|
|
398
398
|
ert/shared/__init__.py,sha256=OwgL-31MxA0fabETJ5Svw0tqJpHi569CZDRFHdHiqA0,644
|
|
399
399
|
ert/shared/net_utils.py,sha256=DDHIZLHdBnh7ZZ--1s-FUlsoNTSJJsfHmLQE44E2JqU,5324
|
|
400
|
-
ert/shared/version.py,sha256=
|
|
400
|
+
ert/shared/version.py,sha256=fXOW6VMQi7T8Efn9Lx5oAa2f_53xPi_6VQ4Z4G4bQZQ,714
|
|
401
401
|
ert/shared/_doc_utils/__init__.py,sha256=zSl-NUpWLF167PVTvfjn0T50gExjvyWPw5OGq5Bt2Dc,983
|
|
402
402
|
ert/shared/_doc_utils/ert_jobs.py,sha256=425Ol3pk-rIjyQxoopAijKV-YiAESJy3yyoukBQle4s,8116
|
|
403
403
|
ert/shared/_doc_utils/everest_jobs.py,sha256=uBDN7tIwlBJIZVZ6ZFL1tkewEJJGDLoeVrFIIrJznvM,2081
|
|
@@ -416,7 +416,7 @@ ert/storage/__init__.py,sha256=W3sSffFeh60a3T3rGlylucgR1sYRQb2OEkAiqO0r1Y0,2053
|
|
|
416
416
|
ert/storage/load_status.py,sha256=7h_GdA2qYGgQ-M5AOIo7xG43ljwzEEgbRb7vg0xSYEE,304
|
|
417
417
|
ert/storage/local_ensemble.py,sha256=AZJIErrgC4UujVQMV0bri3DFjeY09Pu6qg4LtAonO-0,49811
|
|
418
418
|
ert/storage/local_experiment.py,sha256=L7SYZ7LVusjOv1c608aunk9MMMnxVZktHAeML0AvC8U,17098
|
|
419
|
-
ert/storage/local_storage.py,sha256=
|
|
419
|
+
ert/storage/local_storage.py,sha256=IA7rqvDdmkIr46KH_8Sj1sRI8c706hrMA6bYFxG9vRU,23284
|
|
420
420
|
ert/storage/mode.py,sha256=GJBlRSqS0Q06qDvaAztdcG-oV2MLsVID2Mo3OgQKjUw,2470
|
|
421
421
|
ert/storage/realization_storage_state.py,sha256=JdiBr__Ce5e1MzmRsRdMuwgCtiuHZRjsQ-as8ivTX7Q,220
|
|
422
422
|
ert/storage/migration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -427,6 +427,7 @@ ert/storage/migration/to13.py,sha256=uNpwzZPRF9dSFhAtIlmdIi8vGM35Md0n6e60NElegyU
|
|
|
427
427
|
ert/storage/migration/to14.py,sha256=JO83mFTnmdAfdI6splnDS0nT2v541cpl7QzLBfwitOU,1476
|
|
428
428
|
ert/storage/migration/to15.py,sha256=mD0Fz5iNiEE_QeJRdVigDueUeFpNQUNyIm57jlpstcs,771
|
|
429
429
|
ert/storage/migration/to16.py,sha256=akX0tecczCiThkOWsRKwihQnCtZkFP92YSKh0EUkUOI,1137
|
|
430
|
+
ert/storage/migration/to17.py,sha256=i4jhVF9oGPiKmaPW53ZjlDucmD0lds8uIZ1KKCdcyBc,1319
|
|
430
431
|
ert/storage/migration/to6.py,sha256=Pj9lVCyPCOP0-dt4uypsZtS5Awbc8B7oaySu_VTwnnA,1514
|
|
431
432
|
ert/storage/migration/to7.py,sha256=hV5lLfaQegyvxsy_lWfsiQAYVPCvS8Oe0fYc_fvKXzY,4500
|
|
432
433
|
ert/storage/migration/to8.py,sha256=X5xMKPjpqVQYpnsU4PZqn4wVy5gOzlWpvDRYwvynKf8,5390
|
|
@@ -448,7 +449,7 @@ ert/validation/validation_status.py,sha256=f47_B7aS-9DEh6uaVzKxD97pXienkyTVVCqTy
|
|
|
448
449
|
ert/warnings/__init__.py,sha256=IBwQVkdD7Njaad9PAB-9K-kr15wnA4EBKboxyqgu9NA,214
|
|
449
450
|
ert/warnings/_warnings.py,sha256=7qhNZ0W4nnljzoOx6AXX7VlMv5pa34Ek5M5n1Ep0Kak,189
|
|
450
451
|
ert/warnings/specific_warning_handler.py,sha256=5dVXtOhzcMmtPBGx4AOddXNPfzTFOPA7RVtdH8hLv68,932
|
|
451
|
-
ert-17.1.
|
|
452
|
+
ert-17.1.7.dist-info/licenses/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
|
|
452
453
|
everest/__init__.py,sha256=8_f50f6H3-onqaiuNCwC0Eiotdl9JuTxhwyF_54MVvU,306
|
|
453
454
|
everest/config_file_loader.py,sha256=7cOcT0nwsZ_bhqDkyZ60sIvh1kL2sG1gURqF3IHQ4hc,5287
|
|
454
455
|
everest/everest_storage.py,sha256=nfaTdab9kPlXZQiZWRR-Y7Zb-2kyQNhF0B914bU1IDQ,42269
|
|
@@ -515,8 +516,8 @@ everest/templates/well_drill.tmpl,sha256=9iLexmBHMsMQNXyyRK4GlmVuVpVIxRcCHpy1av5
|
|
|
515
516
|
everest/templates/well_order.tmpl,sha256=XJ1eVRkeyTdLu5sLsltJSSK6BDLN7rFOAqLdM3ZZy3w,75
|
|
516
517
|
everest/util/__init__.py,sha256=xEYLz6pUtgkH8VHer1RfoCwKiO70dBnuhHonsOPaOx0,1359
|
|
517
518
|
everest/util/forward_models.py,sha256=JPxHhLI6TrmQJwW50wwGBmw57TfRd8SG2svYhXFHrc8,1617
|
|
518
|
-
ert-17.1.
|
|
519
|
-
ert-17.1.
|
|
520
|
-
ert-17.1.
|
|
521
|
-
ert-17.1.
|
|
522
|
-
ert-17.1.
|
|
519
|
+
ert-17.1.7.dist-info/METADATA,sha256=RR7uZP5bXW_XAw5maynJglQYQcplgis6AcTLcYgdzVE,10005
|
|
520
|
+
ert-17.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
521
|
+
ert-17.1.7.dist-info/entry_points.txt,sha256=ChZ7vn8Qy9v9rT8GM2JtAvWDN3NVoy4BIcvVRtU73CM,189
|
|
522
|
+
ert-17.1.7.dist-info/top_level.txt,sha256=LRh9GfdfyDWfAGmrQgp_XdoMHA4v6aotw8xgsy5YyHE,17
|
|
523
|
+
ert-17.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|