ert 18.0.1__py3-none-any.whl → 18.0.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.
- ert/config/parsing/config_schema.py +3 -3
- ert/config/parsing/config_schema_item.py +11 -7
- ert/config/parsing/schema_item_type.py +1 -0
- ert/shared/version.py +3 -3
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/METADATA +1 -1
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/RECORD +10 -10
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/WHEEL +0 -0
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/entry_points.txt +0 -0
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/licenses/COPYING +0 -0
- {ert-18.0.1.dist-info → ert-18.0.3.dist-info}/top_level.txt +0 -0
|
@@ -4,8 +4,8 @@ from .config_schema_deprecations import deprecated_keywords_list
|
|
|
4
4
|
from .config_schema_item import (
|
|
5
5
|
SchemaItem,
|
|
6
6
|
Varies,
|
|
7
|
+
existing_file_keyword,
|
|
7
8
|
existing_path_inline_keyword,
|
|
8
|
-
existing_path_keyword,
|
|
9
9
|
float_keyword,
|
|
10
10
|
int_keyword,
|
|
11
11
|
path_keyword,
|
|
@@ -318,8 +318,8 @@ def init_user_config_schema() -> ConfigSchemaDict:
|
|
|
318
318
|
surface_keyword(),
|
|
319
319
|
field_keyword(),
|
|
320
320
|
single_arg_keyword(ConfigKeys.ECLBASE),
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
existing_file_keyword(ConfigKeys.DATA_FILE),
|
|
322
|
+
existing_file_keyword(ConfigKeys.GRID),
|
|
323
323
|
path_keyword(ConfigKeys.REFCASE),
|
|
324
324
|
int_keyword(ConfigKeys.RANDOM_SEED),
|
|
325
325
|
num_realizations_keyword(),
|
|
@@ -155,9 +155,9 @@ class SchemaItem:
|
|
|
155
155
|
f"value as argument {index + 1!r}",
|
|
156
156
|
token,
|
|
157
157
|
)
|
|
158
|
-
|
|
159
158
|
case (
|
|
160
159
|
SchemaItemType.PATH
|
|
160
|
+
| SchemaItemType.EXISTING_FILE
|
|
161
161
|
| SchemaItemType.EXISTING_PATH
|
|
162
162
|
| SchemaItemType.EXISTING_PATH_INLINE
|
|
163
163
|
):
|
|
@@ -166,10 +166,14 @@ class SchemaItem:
|
|
|
166
166
|
path = os.path.normpath(
|
|
167
167
|
os.path.join(os.path.dirname(token.filename), token)
|
|
168
168
|
)
|
|
169
|
-
if val_type
|
|
170
|
-
SchemaItemType.
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
if val_type != SchemaItemType.PATH:
|
|
170
|
+
if val_type == SchemaItemType.EXISTING_FILE and not os.path.isfile(
|
|
171
|
+
str(path)
|
|
172
|
+
):
|
|
173
|
+
raise ConfigValidationError.with_context(
|
|
174
|
+
f"{self.kw} {token} is not a file.",
|
|
175
|
+
token,
|
|
176
|
+
)
|
|
173
177
|
if not os.path.exists(str(path)):
|
|
174
178
|
err = f'Cannot find file or directory "{token.value}". '
|
|
175
179
|
if path != token:
|
|
@@ -343,8 +347,8 @@ def path_keyword(keyword: str) -> SchemaItem:
|
|
|
343
347
|
return SchemaItem(kw=keyword, type_map=[SchemaItemType.PATH])
|
|
344
348
|
|
|
345
349
|
|
|
346
|
-
def
|
|
347
|
-
return SchemaItem(kw=keyword, type_map=[SchemaItemType.
|
|
350
|
+
def existing_file_keyword(keyword: str) -> SchemaItem:
|
|
351
|
+
return SchemaItem(kw=keyword, type_map=[SchemaItemType.EXISTING_FILE])
|
|
348
352
|
|
|
349
353
|
|
|
350
354
|
def existing_path_inline_keyword(
|
|
@@ -9,6 +9,7 @@ class SchemaItemType(StrEnum):
|
|
|
9
9
|
POSITIVE_FLOAT = "POSITIVE_FLOAT"
|
|
10
10
|
PATH = "PATH"
|
|
11
11
|
EXISTING_PATH = "EXISTING_PATH"
|
|
12
|
+
EXISTING_FILE = "EXISTING_FILE"
|
|
12
13
|
# EXISTING_PATH_INLINE is a directive to the
|
|
13
14
|
# schema validation to inline the contents of
|
|
14
15
|
# the file.
|
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 = '18.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (18, 0,
|
|
31
|
+
__version__ = version = '18.0.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (18, 0, 3)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g211bdcd43'
|
|
@@ -88,9 +88,9 @@ ert/config/parsing/_read_file.py,sha256=QKMQSNG5J05AdTzy_VQiK5AQ26g0bDHyxlSSPqIh
|
|
|
88
88
|
ert/config/parsing/config_dict.py,sha256=yyBb-NeaFnIjENrcziVA11Bq43uGguUiPECcKWLDg8w,52
|
|
89
89
|
ert/config/parsing/config_errors.py,sha256=p3lAcRPXTm4okupdVyLwRCVWJ_86a7rgCohkDaLRM10,4806
|
|
90
90
|
ert/config/parsing/config_keywords.py,sha256=J8kgzDVhuM8jvCwzO1kfOxvOH_DnDASOZPaJZujcIgQ,1860
|
|
91
|
-
ert/config/parsing/config_schema.py,sha256=
|
|
91
|
+
ert/config/parsing/config_schema.py,sha256=9ws2C3Oc-eT5uB_Xy2IEvPWON7b9rZnIc2FpID7hhWc,9614
|
|
92
92
|
ert/config/parsing/config_schema_deprecations.py,sha256=fmzyxUBxR9GtDNIkP0ozHWU2SH1TvyhBFFyFhG8vZjA,9125
|
|
93
|
-
ert/config/parsing/config_schema_item.py,sha256=
|
|
93
|
+
ert/config/parsing/config_schema_item.py,sha256=jjHT1KqobQvpLxh9gZ0rR8x_YylV29pvvP7oUASFwtA,14448
|
|
94
94
|
ert/config/parsing/context_values.py,sha256=S_j_BKuwqSm8RZNnw6Ki2ZQ4jz0VFXXmh0MZA2OstmQ,2288
|
|
95
95
|
ert/config/parsing/deprecation_info.py,sha256=E31LBTiG1qNeqACU8lTxp54bESIeuuVHgFim8j8uVjg,663
|
|
96
96
|
ert/config/parsing/error_info.py,sha256=AMOS0v-_ECHESj4aoy0m2fUPPlw9SE1DN_8MsaHeilY,2906
|
|
@@ -103,7 +103,7 @@ ert/config/parsing/lark_parser.py,sha256=SS0yXTI5w_qmpFvePMO-r0g9NPqOOrlCFF3amPe
|
|
|
103
103
|
ert/config/parsing/observations_parser.py,sha256=3hmDjQYjSgrumrb8592X2AbJFp-J72Sq_VLQpOwMaWw,6707
|
|
104
104
|
ert/config/parsing/queue_system.py,sha256=P4-oHftl7piNwCNjnelJAA3WePlBmgXGPhnbHhSb4Eo,570
|
|
105
105
|
ert/config/parsing/schema_dict.py,sha256=MWKhtLhdRvqfWm8oZatWFnAhiIU03DdQCOaX6A71068,4313
|
|
106
|
-
ert/config/parsing/schema_item_type.py,sha256=
|
|
106
|
+
ert/config/parsing/schema_item_type.py,sha256=LP6lXE7YihnAEVP3kCJ80kdpgH6Veu--xcPfgaqJhdc,653
|
|
107
107
|
ert/config/parsing/types.py,sha256=NXV5odfbVL_opQgPTaSlpgkilY4qaB3pal4TaV6pL80,315
|
|
108
108
|
ert/config/parsing/workflow_job_keywords.py,sha256=4SSy2dwLS3G2B1-HPw3b6dMEpIc5-2218ERL_PT_R1k,269
|
|
109
109
|
ert/config/parsing/workflow_job_schema.py,sha256=lkL7CAOFeNcWNRGfBuu1FdbcSqwPXM__8dCC8b3hkTg,2905
|
|
@@ -400,7 +400,7 @@ ert/services/ert_server.py,sha256=geh5mkdAKqNKgG56DcwSnEpvf0wcUc7vuw4feG1ykEI,10
|
|
|
400
400
|
ert/services/webviz_ert_service.py,sha256=J5vznqb_-DjlDMOze7tdvuBE4GWEPgJ5dIIXvRLKd0Y,650
|
|
401
401
|
ert/shared/__init__.py,sha256=OwgL-31MxA0fabETJ5Svw0tqJpHi569CZDRFHdHiqA0,644
|
|
402
402
|
ert/shared/net_utils.py,sha256=DDHIZLHdBnh7ZZ--1s-FUlsoNTSJJsfHmLQE44E2JqU,5324
|
|
403
|
-
ert/shared/version.py,sha256=
|
|
403
|
+
ert/shared/version.py,sha256=llZW1syJ0X_XI90_uTsjvEQ5V9UY3Fxv-4JUtLFBSRc,714
|
|
404
404
|
ert/shared/_doc_utils/__init__.py,sha256=zSl-NUpWLF167PVTvfjn0T50gExjvyWPw5OGq5Bt2Dc,983
|
|
405
405
|
ert/shared/_doc_utils/ert_jobs.py,sha256=uHP8ozhKwCHG6BkyhAgCGoy59JEFb102pHKot-5ZEys,8054
|
|
406
406
|
ert/shared/_doc_utils/everest_jobs.py,sha256=uBDN7tIwlBJIZVZ6ZFL1tkewEJJGDLoeVrFIIrJznvM,2081
|
|
@@ -453,7 +453,7 @@ ert/validation/validation_status.py,sha256=f47_B7aS-9DEh6uaVzKxD97pXienkyTVVCqTy
|
|
|
453
453
|
ert/warnings/__init__.py,sha256=IBwQVkdD7Njaad9PAB-9K-kr15wnA4EBKboxyqgu9NA,214
|
|
454
454
|
ert/warnings/_warnings.py,sha256=7qhNZ0W4nnljzoOx6AXX7VlMv5pa34Ek5M5n1Ep0Kak,189
|
|
455
455
|
ert/warnings/specific_warning_handler.py,sha256=5dVXtOhzcMmtPBGx4AOddXNPfzTFOPA7RVtdH8hLv68,932
|
|
456
|
-
ert-18.0.
|
|
456
|
+
ert-18.0.3.dist-info/licenses/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
|
|
457
457
|
everest/__init__.py,sha256=8_f50f6H3-onqaiuNCwC0Eiotdl9JuTxhwyF_54MVvU,306
|
|
458
458
|
everest/config_file_loader.py,sha256=q_rmxk778uDrNxdQQW0tBs9R3hU4az6yGCJwuY_5xww,5698
|
|
459
459
|
everest/everest_storage.py,sha256=Xg2CuRdhZOqljm0i6H5o-pejcMeCwncSGw7Q6beZRgY,42173
|
|
@@ -517,8 +517,8 @@ everest/templates/well_drill.tmpl,sha256=9iLexmBHMsMQNXyyRK4GlmVuVpVIxRcCHpy1av5
|
|
|
517
517
|
everest/templates/well_order.tmpl,sha256=XJ1eVRkeyTdLu5sLsltJSSK6BDLN7rFOAqLdM3ZZy3w,75
|
|
518
518
|
everest/util/__init__.py,sha256=xEYLz6pUtgkH8VHer1RfoCwKiO70dBnuhHonsOPaOx0,1359
|
|
519
519
|
everest/util/forward_models.py,sha256=JPxHhLI6TrmQJwW50wwGBmw57TfRd8SG2svYhXFHrc8,1617
|
|
520
|
-
ert-18.0.
|
|
521
|
-
ert-18.0.
|
|
522
|
-
ert-18.0.
|
|
523
|
-
ert-18.0.
|
|
524
|
-
ert-18.0.
|
|
520
|
+
ert-18.0.3.dist-info/METADATA,sha256=6VtOgk7bU0tXesTYDU64W3uB5doNHepwgh2Zsc31cMQ,10013
|
|
521
|
+
ert-18.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
522
|
+
ert-18.0.3.dist-info/entry_points.txt,sha256=ChZ7vn8Qy9v9rT8GM2JtAvWDN3NVoy4BIcvVRtU73CM,189
|
|
523
|
+
ert-18.0.3.dist-info/top_level.txt,sha256=LRh9GfdfyDWfAGmrQgp_XdoMHA4v6aotw8xgsy5YyHE,17
|
|
524
|
+
ert-18.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|