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.
- ert/__main__.py +94 -63
- ert/analysis/_es_update.py +11 -14
- ert/cli/main.py +1 -1
- ert/config/__init__.py +3 -2
- ert/config/_create_observation_dataframes.py +52 -375
- ert/config/_observations.py +527 -200
- ert/config/_read_summary.py +4 -5
- ert/config/ert_config.py +52 -117
- ert/config/everest_control.py +40 -39
- ert/config/everest_response.py +3 -15
- ert/config/field.py +4 -76
- ert/config/forward_model_step.py +17 -1
- ert/config/gen_data_config.py +14 -17
- ert/config/observation_config_migrations.py +821 -0
- ert/config/parameter_config.py +18 -28
- ert/config/parsing/__init__.py +0 -1
- ert/config/parsing/_parse_zonemap.py +45 -0
- ert/config/parsing/config_keywords.py +1 -0
- ert/config/parsing/config_schema.py +2 -0
- ert/config/parsing/observations_parser.py +2 -0
- ert/config/response_config.py +5 -23
- ert/config/rft_config.py +129 -31
- ert/config/summary_config.py +1 -13
- ert/config/surface_config.py +0 -57
- ert/dark_storage/compute/misfits.py +0 -42
- ert/dark_storage/endpoints/__init__.py +0 -2
- ert/dark_storage/endpoints/experiments.py +2 -5
- ert/dark_storage/json_schema/experiment.py +1 -2
- ert/field_utils/__init__.py +0 -2
- ert/field_utils/field_utils.py +1 -117
- ert/gui/ertwidgets/listeditbox.py +9 -1
- ert/gui/ertwidgets/models/ertsummary.py +20 -6
- ert/gui/ertwidgets/pathchooser.py +9 -1
- ert/gui/ertwidgets/stringbox.py +11 -3
- ert/gui/ertwidgets/textbox.py +10 -3
- ert/gui/ertwidgets/validationsupport.py +19 -1
- ert/gui/main_window.py +11 -6
- ert/gui/simulation/experiment_panel.py +1 -1
- ert/gui/simulation/run_dialog.py +11 -1
- ert/gui/tools/manage_experiments/export_dialog.py +4 -0
- ert/gui/tools/manage_experiments/manage_experiments_panel.py +1 -0
- ert/gui/tools/manage_experiments/storage_info_widget.py +1 -1
- ert/gui/tools/manage_experiments/storage_widget.py +21 -4
- ert/gui/tools/plot/data_type_proxy_model.py +1 -1
- ert/gui/tools/plot/plot_api.py +35 -27
- ert/gui/tools/plot/plot_widget.py +5 -0
- ert/gui/tools/plot/plot_window.py +4 -7
- ert/run_models/ensemble_experiment.py +2 -9
- ert/run_models/ensemble_smoother.py +1 -9
- ert/run_models/everest_run_model.py +31 -23
- ert/run_models/initial_ensemble_run_model.py +19 -22
- ert/run_models/manual_update.py +11 -5
- ert/run_models/model_factory.py +7 -7
- ert/run_models/multiple_data_assimilation.py +3 -16
- ert/sample_prior.py +12 -14
- ert/scheduler/job.py +24 -4
- ert/services/__init__.py +7 -3
- ert/services/_storage_main.py +59 -22
- ert/services/ert_server.py +186 -24
- ert/shared/version.py +3 -3
- ert/storage/local_ensemble.py +50 -116
- ert/storage/local_experiment.py +94 -109
- ert/storage/local_storage.py +10 -12
- ert/storage/migration/to24.py +26 -0
- ert/storage/migration/to25.py +91 -0
- ert/utils/__init__.py +20 -0
- {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/METADATA +4 -51
- {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/RECORD +80 -83
- everest/bin/everest_script.py +5 -5
- everest/bin/kill_script.py +2 -2
- everest/bin/monitor_script.py +2 -2
- everest/bin/utils.py +4 -4
- everest/detached/everserver.py +6 -6
- everest/gui/everest_client.py +0 -6
- everest/gui/main_window.py +2 -2
- everest/util/__init__.py +1 -19
- ert/dark_storage/compute/__init__.py +0 -0
- ert/dark_storage/endpoints/compute/__init__.py +0 -0
- ert/dark_storage/endpoints/compute/misfits.py +0 -95
- ert/services/_base_service.py +0 -387
- ert/services/webviz_ert_service.py +0 -20
- ert/shared/storage/command.py +0 -38
- ert/shared/storage/extraction.py +0 -42
- {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/WHEEL +0 -0
- {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/entry_points.txt +0 -0
- {ert-19.0.1.dist-info → ert-20.0.0b1.dist-info}/licenses/COPYING +0 -0
- {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)
|
ert/shared/storage/command.py
DELETED
|
@@ -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)
|
ert/shared/storage/extraction.py
DELETED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|