Skip to content

Commit adb17ad

Browse files
committed
Fix comments
1 parent f83ea40 commit adb17ad

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/ert/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .ert_config import ErtConfig, forward_model_step_from_config_contents
1212
from .ert_plugin import ErtPlugin
1313
from .ert_script import ErtScript
14-
from .everest_config import EverestConstraintsConfig, EverestObjectivesConfig
14+
from .everest_response import EverestConstraintsConfig, EverestObjectivesConfig
1515
from .ext_param_config import ExtParamConfig, SamplerConfig, get_ropt_plugin_manager
1616
from .external_ert_script import ExternalErtScript
1717
from .field import Field, field_transform
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
from .responses_index import responses_index
1212

1313

14-
class EverestConfigBase(ResponseConfig):
14+
class EverestResponse(ResponseConfig):
1515
"""Base class for Everest response configurations."""
1616

17-
type: str
18-
name: str
1917
has_finalized_keys: bool = True
2018
scales: list[float | None]
2119

@@ -94,7 +92,7 @@ def _read_file(filename: Path) -> pl.DataFrame:
9492
return combined
9593

9694

97-
class EverestConstraintsConfig(EverestConfigBase):
95+
class EverestConstraintsConfig(EverestResponse):
9896
type: Literal["everest_constraints"] = "everest_constraints"
9997
name: str = "everest_constraints"
10098
targets: list[float | None]
@@ -105,7 +103,7 @@ class EverestConstraintsConfig(EverestConfigBase):
105103
responses_index.add_response_type(EverestConstraintsConfig)
106104

107105

108-
class EverestObjectivesConfig(EverestConfigBase):
106+
class EverestObjectivesConfig(EverestResponse):
109107
type: Literal["everest_objectives"] = "everest_objectives"
110108
name: str = "everest_objectives"
111109
weights: list[float | None]

src/ert/config/known_response_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .everest_config import EverestConstraintsConfig, EverestObjectivesConfig
1+
from .everest_response import EverestConstraintsConfig, EverestObjectivesConfig
22
from .gen_data_config import GenDataConfig
33
from .summary_config import SummaryConfig
44

0 commit comments

Comments
 (0)