Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Sep 30, 2024
1 parent de6a4dd commit 1885514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ert/config/ensemble_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class EnsembleConfig:
response_configs: Dict[str, Union[SummaryConfig, GenDataConfig]] = field(
default_factory=dict
)
parameter_configs: Dict[str, Union[GenKwConfig, FieldConfig, SurfaceConfig]] = field(
default_factory=dict
parameter_configs: Dict[str, Union[GenKwConfig, FieldConfig, SurfaceConfig]] = (
field(default_factory=dict)
)
refcase: Optional[Refcase] = None
eclbase: Optional[str] = None
Expand Down Expand Up @@ -97,7 +97,7 @@ def from_dict(cls, config_dict: ConfigDict) -> EnsembleConfig:
grid_file_path,
) from err

def make_field(field_list: List[str]) -> Field:
def make_field(field_list: List[str]) -> FieldConfig:
if grid_file_path is None:
raise ConfigValidationError.with_context(
"In order to use the FIELD keyword, a GRID must be supplied.",
Expand All @@ -108,7 +108,7 @@ def make_field(field_list: List[str]) -> Field:
f"Grid file {grid_file_path} did not contain dimensions",
grid_file_path,
)
return Field.from_config_list(grid_file_path, dims, field_list)
return FieldConfig.from_config_list(grid_file_path, dims, field_list)

parameter_configs = (
[GenKwConfig.from_config_list(g) for g in gen_kw_list]
Expand Down

0 comments on commit 1885514

Please sign in to comment.