Skip to content

Commit

Permalink
Modify type of parameter configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Oct 8, 2024
1 parent 772f1c1 commit 4dc66f7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/ert/config/design_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def read_design_matrix(

# ignoring errors here is deprecated in pandas, should find another solution
# design_matrix_sheet = design_matrix_sheet.apply(pd.to_numeric, errors="ignore")
parameter_configuration = {}
transform_function_definitions: list[TransformFunctionDefinition] = []
for parameter in design_matrix_df.columns:
transform_function_definitions.append(
Expand All @@ -107,14 +106,16 @@ def read_design_matrix(
values=[],
)
)
parameter_configuration[DESIGN_MATRIX_GROUP] = GenKwConfig(
name=DESIGN_MATRIX_GROUP,
forward_init=False,
template_file=None,
output_file=None,
transform_function_definitions=transform_function_definitions,
update=False,
)
parameter_configuration = [
GenKwConfig(
name=DESIGN_MATRIX_GROUP,
forward_init=False,
template_file=None,
output_file=None,
transform_function_definitions=transform_function_definitions,
update=False,
)
]

design_matrix_df.columns = pd.MultiIndex.from_product(
[[DESIGN_MATRIX_GROUP], design_matrix_df.columns]
Expand Down

0 comments on commit 4dc66f7

Please sign in to comment.