ert 18.0.5__py3-none-any.whl → 18.0.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/config/ert_config.py CHANGED
@@ -686,6 +686,14 @@ def log_observation_keys(
686
686
  if key not in {"name", "type"}
687
687
  )
688
688
 
689
+ if "HISTORY_OBSERVATION" in observation_type_counts:
690
+ msg = (
691
+ "HISTORY_OBSERVATION is deprecated and will be removed. "
692
+ "Please use SUMMARY_OBSERVATION instead."
693
+ )
694
+ ConfigWarning.warn(msg)
695
+ logger.warning(msg)
696
+
689
697
  logger.info(
690
698
  f"Count of observation types:\n\t{dict(observation_type_counts)}\n"
691
699
  f"Count of observation keywords:\n\t{dict(observation_keyword_counts)}"
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.5'
32
- __version_tuple__ = version_tuple = (18, 0, 5)
31
+ __version__ = version = '18.0.7'
32
+ __version_tuple__ = version_tuple = (18, 0, 7)
33
33
 
34
- __commit_id__ = commit_id = 'g13b681fbe'
34
+ __commit_id__ = commit_id = 'gbd11a04e9'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ert
3
- Version: 18.0.5
3
+ Version: 18.0.7
4
4
  Summary: Ensemble based Reservoir Tool (ERT)
5
5
  Author-email: Equinor ASA <fg_sib-scout@equinor.com>
6
6
  License-Expression: GPL-3.0-only
@@ -52,7 +52,7 @@ Requires-Dist: progressbar2
52
52
  Requires-Dist: psutil
53
53
  Requires-Dist: pyarrow
54
54
  Requires-Dist: pydantic>2
55
- Requires-Dist: pyqt6!=6.10.0
55
+ Requires-Dist: pyqt6<6.10.0
56
56
  Requires-Dist: python-dateutil
57
57
  Requires-Dist: python-multipart
58
58
  Requires-Dist: pyyaml
@@ -54,7 +54,7 @@ ert/config/capture_validation.py,sha256=8HGEbJ2z9FXeEaxSewejP7NtEh4LLomPwcdpC0CJ
54
54
  ert/config/design_matrix.py,sha256=yyAFBppTwZXt4OeN6kxRmLk16jF8bntQWLHU_-rDQn4,17236
55
55
  ert/config/distribution.py,sha256=MdLQEnWZqDaAwbKI1maXxlurYousirlZbA8AIk6GITw,12734
56
56
  ert/config/ensemble_config.py,sha256=wI2wDWXpblUzFPaRQRpm9ZYgExGIs6DnT4fLmD5vWJ0,7323
57
- ert/config/ert_config.py,sha256=FSl7XHkK94slKmKrUj-rMmkDRe-C4ehDzc_iLb02I34,54853
57
+ ert/config/ert_config.py,sha256=HRXfKPoecapHtTM5dLe-dDAO_p4-vX0QnulmcOuYB9g,55121
58
58
  ert/config/ert_plugin.py,sha256=hENwrc9FfhqUYjVpFYcmy66jDLgU_gagOJFBcYjxe6A,458
59
59
  ert/config/ert_script.py,sha256=64FZ-dMI8DZtRLHWReC19KY-ZOsBhdgYkwAe9ZWLc_I,8405
60
60
  ert/config/everest_response.py,sha256=NURh-JPQwEm6kQgsw7_PkcXaUYOMSZoUA3x2yQKPTOM,3530
@@ -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=SxCVKe11yQFCplIrFx2YioWUSroggGgknWm6FI-tMh8,714
403
+ ert/shared/version.py,sha256=N_ZtggTFu8IWmMJpnrJLRdvTLMgHvxv3Iqubhwz7-b0,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.5.dist-info/licenses/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
456
+ ert-18.0.7.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
@@ -472,11 +472,11 @@ everest/bin/monitor_script.py,sha256=4FOkLvGJXaBf84Pl97JxE_fGQXU5AiRVgLWEXmFrLHs
472
472
  everest/bin/utils.py,sha256=LKnwJIALpRj2H3tSHHONPQKFY3Si8wJZCew6529ou5I,18814
473
473
  everest/bin/visualization_script.py,sha256=QUzTKRt1JeCRF4U5jGataLd3GZwCkJOFi0mwnWOpQMk,2729
474
474
  everest/config/__init__.py,sha256=nYC7D8A0Lh8jFIbtCiLjRxSjufPCsQsdQ6HW5dZfHfc,1535
475
- everest/config/control_config.py,sha256=nCflBBkPxqvQiTqzpjAVFY9I2y-568g1WVXpnluWqe0,12983
475
+ everest/config/control_config.py,sha256=ERD4VBFGq6nkHMOrjtLS8rnXxoF-VHk9kP1_uZKtY7o,13581
476
476
  everest/config/control_variable_config.py,sha256=9MMRFtNgt_gRKOlwV7jE6QD6jiHFzcx-z6U6yq9jrww,7677
477
477
  everest/config/cvar_config.py,sha256=vIZZ3DUZpestNsC3ljY2I4PbANeDeh10fEy8KyB_58A,1593
478
478
  everest/config/environment_config.py,sha256=r5avqQFyaEpTIVXM9IqPVImvlsVK1qy1WxoPNgGDWLo,2645
479
- everest/config/everest_config.py,sha256=kbzgXvH_Ssef18obpE-21-SpfYqnsjZ5S4OrLZ4tcyw,39800
479
+ everest/config/everest_config.py,sha256=0X1vvuOpVz3OajFnx-xdoewNg_UWxcEru4zBiNP2lP8,39822
480
480
  everest/config/export_config.py,sha256=Uut70fMB7Zd_vOEebTCz9GvFv5DjS_f2CW0qT9GcBQ0,982
481
481
  everest/config/forward_model_config.py,sha256=kjQ6ASh9PaDU-rP0IX8u5JxQ6KjWiyv_pUN68yrori0,2784
482
482
  everest/config/input_constraint_config.py,sha256=czgkiPBiOd0VpIWZgRkgCpm0TkioNoDP13ao6VUDGW0,3011
@@ -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.5.dist-info/METADATA,sha256=T_gVI7Ry5O9wPk6isM0I_qVDzXT7Bngn8SNBMhva95o,10013
521
- ert-18.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
522
- ert-18.0.5.dist-info/entry_points.txt,sha256=ChZ7vn8Qy9v9rT8GM2JtAvWDN3NVoy4BIcvVRtU73CM,189
523
- ert-18.0.5.dist-info/top_level.txt,sha256=LRh9GfdfyDWfAGmrQgp_XdoMHA4v6aotw8xgsy5YyHE,17
524
- ert-18.0.5.dist-info/RECORD,,
520
+ ert-18.0.7.dist-info/METADATA,sha256=Zh2yPHvSF8IQdw5tJju-cgpRUraejGtrVCSSYVKia7M,10012
521
+ ert-18.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
522
+ ert-18.0.7.dist-info/entry_points.txt,sha256=ChZ7vn8Qy9v9rT8GM2JtAvWDN3NVoy4BIcvVRtU73CM,189
523
+ ert-18.0.7.dist-info/top_level.txt,sha256=LRh9GfdfyDWfAGmrQgp_XdoMHA4v6aotw8xgsy5YyHE,17
524
+ ert-18.0.7.dist-info/RECORD,,
@@ -166,7 +166,8 @@ class ControlConfig(BaseModel):
166
166
  """
167
167
  ),
168
168
  )
169
- perturbation_magnitude: float = Field(
169
+ perturbation_magnitude: float | None = Field(
170
+ default=None,
170
171
  description=dedent(
171
172
  """
172
173
  The magnitude of the perturbation of all control variables in the
@@ -185,6 +186,8 @@ class ControlConfig(BaseModel):
185
186
  and `min` fields.
186
187
 
187
188
  This default value can be overridden at the variable level.
189
+
190
+ This field is required unless it is explicitly set for all variables.
188
191
  """
189
192
  ),
190
193
  )
@@ -247,6 +250,19 @@ class ControlConfig(BaseModel):
247
250
  )
248
251
  return values
249
252
 
253
+ @model_validator(mode="after")
254
+ def validate_perturbation_magnitude(self) -> Self:
255
+ if self.perturbation_magnitude is None and any(
256
+ variable
257
+ for variable in self.variables
258
+ if variable.perturbation_magnitude is None
259
+ ):
260
+ raise ValueError(
261
+ "A default perturbation_magnitude for all variables must be set "
262
+ "when not all variables define it explicitly."
263
+ )
264
+ return self
265
+
250
266
  @model_validator(mode="after")
251
267
  def validate_variables(self) -> Self:
252
268
  if self.variables is None:
@@ -188,18 +188,18 @@ class EverestConfig(BaseModelWithContextSupport):
188
188
  ```yaml
189
189
  controls:
190
190
  - name: point
191
- type: generic_control
192
- min: -1.0
191
+ type: generic_control
192
+ min: -1.0
193
+ max: 1.0
194
+ initial_guess: 0.1
195
+ perturbation_magnitude: 0.001
196
+ variables:
197
+ - name: x
198
+ initial_guess: 0.5
199
+ - name: y
200
+ min: 0.0
193
201
  max: 1.0
194
- initial_guess: 0.1
195
- perturbation_magnitude: 0.001
196
- variables:
197
- - name: x
198
- initial_guess: 0.5
199
- - name: y
200
- min: 0.0
201
- max: 1.0
202
- - name: z
202
+ - name: z
203
203
  ```
204
204
 
205
205
  This defines a group of controls names `point`, with variables `x`,
@@ -221,17 +221,18 @@ class EverestConfig(BaseModelWithContextSupport):
221
221
  ```yaml
222
222
  controls:
223
223
  - name: point
224
- max: 1.0
225
- min: -1.0
226
- initial_guess: 0.25
227
- type: generic_control
228
- variables:
229
- - name: x
230
- index: 1
231
- - name: x
232
- index: 2
233
- - name: x
234
- index: 3
224
+ max: 1.0
225
+ min: -1.0
226
+ initial_guess: 0.25
227
+ perturbation_magnitude: 0.001
228
+ type: generic_control
229
+ variables:
230
+ - name: x
231
+ index: 1
232
+ - name: x
233
+ index: 2
234
+ - name: x
235
+ index: 3
235
236
  ```
236
237
 
237
238
  This defines three variables `point.x.1`, `point.x.2` and
@@ -247,12 +248,13 @@ class EverestConfig(BaseModelWithContextSupport):
247
248
  ```yaml
248
249
  controls:
249
250
  - name: point
250
- max: 1.0
251
- min: -1.0
252
- type: generic_control
253
- variables:
254
- - name: x
255
- initial_guess: [0.25, 0.25, 0.25]
251
+ max: 1.0
252
+ min: -1.0
253
+ perturbation_magnitude: 0.001
254
+ type: generic_control
255
+ variables:
256
+ - name: x
257
+ initial_guess: [0.25, 0.25, 0.25]
256
258
  ```
257
259
  """
258
260
  ),
File without changes