ert 19.0.1__py3-none-any.whl → 20.0.0b1__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.
Files changed (87) hide show
  1. ert/__main__.py +94 -63
  2. ert/analysis/_es_update.py +11 -14
  3. ert/cli/main.py +1 -1
  4. ert/config/__init__.py +3 -2
  5. ert/config/_create_observation_dataframes.py +52 -375
  6. ert/config/_observations.py +527 -200
  7. ert/config/_read_summary.py +4 -5
  8. ert/config/ert_config.py +52 -117
  9. ert/config/everest_control.py +40 -39
  10. ert/config/everest_response.py +3 -15
  11. ert/config/field.py +4 -76
  12. ert/config/forward_model_step.py +17 -1
  13. ert/config/gen_data_config.py +14 -17
  14. ert/config/observation_config_migrations.py +821 -0
  15. ert/config/parameter_config.py +18 -28
  16. ert/config/parsing/__init__.py +0 -1
  17. ert/config/parsing/_parse_zonemap.py +45 -0
  18. ert/config/parsing/config_keywords.py +1 -0
  19. ert/config/parsing/config_schema.py +2 -0
  20. ert/config/parsing/observations_parser.py +2 -0
  21. ert/config/response_config.py +5 -23
  22. ert/config/rft_config.py +129 -31
  23. ert/config/summary_config.py +1 -13
  24. ert/config/surface_config.py +0 -57
  25. ert/dark_storage/compute/misfits.py +0 -42
  26. ert/dark_storage/endpoints/__init__.py +0 -2
  27. ert/dark_storage/endpoints/experiments.py +2 -5
  28. ert/dark_storage/json_schema/experiment.py +1 -2
  29. ert/field_utils/__init__.py +0 -2
  30. ert/field_utils/field_utils.py +1 -117
  31. ert/gui/ertwidgets/listeditbox.py +9 -1
  32. ert/gui/ertwidgets/models/ertsummary.py +20 -6
  33. ert/gui/ertwidgets/pathchooser.py +9 -1
  34. ert/gui/ertwidgets/stringbox.py +11 -3
  35. ert/gui/ertwidgets/textbox.py +10 -3
  36. ert/gui/ertwidgets/validationsupport.py +19 -1
  37. ert/gui/main_window.py +11 -6
  38. ert/gui/simulation/experiment_panel.py +1 -1
  39. ert/gui/simulation/run_dialog.py +11 -1
  40. ert/gui/tools/manage_experiments/export_dialog.py +4 -0
  41. ert/gui/tools/manage_experiments/manage_experiments_panel.py +1 -0
  42. ert/gui/tools/manage_experiments/storage_info_widget.py +1 -1
  43. ert/gui/tools/manage_experiments/storage_widget.py +21 -4
  44. ert/gui/tools/plot/data_type_proxy_model.py +1 -1
  45. ert/gui/tools/plot/plot_api.py +35 -27
  46. ert/gui/tools/plot/plot_widget.py +5 -0
  47. ert/gui/tools/plot/plot_window.py +4 -7
  48. ert/run_models/ensemble_experiment.py +2 -9
  49. ert/run_models/ensemble_smoother.py +1 -9
  50. ert/run_models/everest_run_model.py +31 -23
  51. ert/run_models/initial_ensemble_run_model.py +19 -22
  52. ert/run_models/manual_update.py +11 -5
  53. ert/run_models/model_factory.py +7 -7
  54. ert/run_models/multiple_data_assimilation.py +3 -16
  55. ert/sample_prior.py +12 -14
  56. ert/scheduler/job.py +24 -4
  57. ert/services/__init__.py +7 -3
  58. ert/services/_storage_main.py +59 -22
  59. ert/services/ert_server.py +186 -24
  60. ert/shared/version.py +3 -3
  61. ert/storage/local_ensemble.py +50 -116
  62. ert/storage/local_experiment.py +94 -109
  63. ert/storage/local_storage.py +10 -12
  64. ert/storage/migration/to24.py +26 -0
  65. ert/storage/migration/to25.py +91 -0
  66. ert/utils/__init__.py +20 -0
  67. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/METADATA +4 -51
  68. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/RECORD +80 -83
  69. everest/bin/everest_script.py +5 -5
  70. everest/bin/kill_script.py +2 -2
  71. everest/bin/monitor_script.py +2 -2
  72. everest/bin/utils.py +4 -4
  73. everest/detached/everserver.py +6 -6
  74. everest/gui/everest_client.py +0 -6
  75. everest/gui/main_window.py +2 -2
  76. everest/util/__init__.py +1 -19
  77. ert/dark_storage/compute/__init__.py +0 -0
  78. ert/dark_storage/endpoints/compute/__init__.py +0 -0
  79. ert/dark_storage/endpoints/compute/misfits.py +0 -95
  80. ert/services/_base_service.py +0 -387
  81. ert/services/webviz_ert_service.py +0 -20
  82. ert/shared/storage/command.py +0 -38
  83. ert/shared/storage/extraction.py +0 -42
  84. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/WHEEL +0 -0
  85. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/entry_points.txt +0 -0
  86. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/licenses/COPYING +0 -0
  87. {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/top_level.txt +0 -0
@@ -1,20 +0,0 @@
1
- import sys
2
- from typing import Any
3
-
4
- from ert.services._base_service import BaseService
5
-
6
-
7
- class WebvizErt(BaseService):
8
- service_name = "webviz-ert"
9
-
10
- def __init__(self, **kwargs: Any) -> None:
11
- exec_args = [sys.executable, "-m", "webviz_ert"]
12
- if kwargs.get("experimental_mode"):
13
- exec_args.append("--experimental-mode")
14
- if kwargs.get("verbose"):
15
- exec_args.append("--verbose")
16
- exec_args.extend(["--title", str(kwargs.get("title"))])
17
- project = kwargs.get("project")
18
- exec_args.extend(["--project_identifier", str(project)])
19
-
20
- super().__init__(exec_args, project=project)
@@ -1,38 +0,0 @@
1
- import os
2
- from argparse import ArgumentParser
3
-
4
-
5
- def add_parser_options(ap: ArgumentParser) -> None:
6
- ap.add_argument(
7
- "config",
8
- type=str,
9
- help=("ERT config file to start the server from "),
10
- nargs="?", # optional
11
- )
12
- ap.add_argument(
13
- "--project",
14
- "-p",
15
- type=str,
16
- help="Path to directory in which to create storage_server.json",
17
- default=os.getcwd(),
18
- )
19
- ap.add_argument(
20
- "--traceparent",
21
- type=str,
22
- help="Trace parent id to be used by the storage root span",
23
- default=None,
24
- )
25
- ap.add_argument(
26
- "--parent_pid",
27
- type=int,
28
- help="The parent process id",
29
- default=os.getppid(),
30
- )
31
- ap.add_argument(
32
- "--host", type=str, default=os.environ.get("ERT_STORAGE_HOST", "127.0.0.1")
33
- )
34
- ap.add_argument("--logging-config", type=str, default=None)
35
- ap.add_argument(
36
- "--verbose", action="store_true", help="Show verbose output.", default=False
37
- )
38
- ap.add_argument("--debug", action="store_true", default=False)
@@ -1,42 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from collections.abc import Mapping
4
-
5
- from ert.config import GenKwConfig
6
- from ert.storage import Experiment
7
-
8
- _PRIOR_NAME_MAP = {
9
- "NORMAL": "normal",
10
- "LOGNORMAL": "lognormal",
11
- "TRIANGULAR": "trig",
12
- "TRUNCATED_NORMAL": "ert_truncnormal",
13
- "CONST": "const",
14
- "UNIFORM": "uniform",
15
- "LOGUNIF": "loguniform",
16
- "DUNIF": "ert_duniform",
17
- "RAW": "stdnormal",
18
- "ERRF": "ert_erf",
19
- "DERRF": "ert_derf",
20
- }
21
-
22
-
23
- def create_priors(
24
- experiment: Experiment,
25
- ) -> Mapping[str, dict[str, str | float]]:
26
- priors_dict = {}
27
-
28
- for param in experiment.parameter_configuration.values():
29
- if isinstance(param, GenKwConfig):
30
- prior: dict[str, str | float] = {
31
- "function": _PRIOR_NAME_MAP[param.distribution.name.upper()],
32
- **param.distribution.model_dump(exclude={"name"}),
33
- }
34
- # webviz-ert expects some variables names
35
- if param.distribution.name == "triangular":
36
- mapping = {"min": "_xmin", "max": "xmax", "mode": "xmode"}
37
- else:
38
- mapping = {"min": "_min", "max": "_max"}
39
- prior = {mapping.get(k, k): v for k, v in prior.items()}
40
- priors_dict[f"{param.group}:{param.name}"] = prior
41
-
42
- return priors_dict
File without changes