diff --git a/src/ert/config/ensemble_config.py b/src/ert/config/ensemble_config.py index 1c321c04e0b..85bf942dd04 100644 --- a/src/ert/config/ensemble_config.py +++ b/src/ert/config/ensemble_config.py @@ -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 @@ -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.", @@ -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]