Skip to content

Commit

Permalink
Add testing design matrix for poly.ert -- burn before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Oct 15, 2024
1 parent b3e1ca8 commit 88537d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test-data/ert/poly_example/poly.ert
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ MIN_REALIZATIONS 1
GEN_KW COEFFS coeff_priors
GEN_DATA POLY_RES RESULT_FILE:poly.out

-- DESIGN_MATRIX design_matrix.xlsx DESIGN_SHEET:DesignSheet01 DEFAULT_SHEET:DefaultValues
DESIGN_MATRIX poly_design.xlsx DESIGN_SHEET:DesignSheet01 DEFAULT_SHEET:DefaultSheet

INSTALL_JOB poly_eval POLY_EVAL
FORWARD_MODEL poly_eval
Binary file added test-data/ert/poly_example/poly_design.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion test-data/ert/poly_example/poly_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def _load_coeffs(filename):
with open(filename, encoding="utf-8") as f:
return json.load(f)["COEFFS"]
return json.load(f)["DESIGN_MATRIX"]


def _evaluate(coeffs, x):
Expand Down

0 comments on commit 88537d3

Please sign in to comment.