Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
config_path: config.yml
controls:
- max: 0.1
min: 0.0
name: my_control
perturbation_magnitude: 0.01
variables:
- {initial_guess: 0.1, name: test}
model:
realizations: [0]
realizations_weights: [1.0]
objective_functions:
- {name: my_objective}
12 changes: 12 additions & 0 deletions src/ert/dark_storage/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
from collections.abc import Iterator
from contextlib import contextmanager
from enum import StrEnum, auto
from importlib import metadata

import pandas as pd
Expand All @@ -25,6 +26,17 @@
_storage: Storage | None = None


class EverEndpoints(StrEnum):
STOP = auto()
START_EXPERIMENT = auto()
CONFIG_PATH = auto()
START_TIME = auto()
EXPERIMENTS = auto()
STATUS = auto()
EVENTS = auto()
RUNPATH = auto()


def get_storage() -> Storage:
global _storage
if _storage is None:
Expand Down
2 changes: 1 addition & 1 deletion src/ert/dark_storage/endpoints/experiment_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

from ert.base_model_context import use_runtime_plugins
from ert.config import ConfigWarning, QueueSystem
from ert.dark_storage.common import EverEndpoints
from ert.ensemble_evaluator import EndEvent, EvaluatorServerConfig
from ert.ensemble_evaluator.event import FullSnapshotEvent, SnapshotUpdateEvent
from ert.ensemble_evaluator.snapshot import EnsembleSnapshot
Expand All @@ -46,7 +47,6 @@
from everest.strings import (
OPT_FAILURE_ALL_REALIZATIONS,
OPT_FAILURE_REALIZATIONS,
EverEndpoints,
)

router = APIRouter(prefix="/experiment_server", tags=["experiment_server"])
Expand Down
161 changes: 0 additions & 161 deletions src/ert/gui/experiments/experiment_client.py

This file was deleted.

Loading
Loading