-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have DESIGN_MATRIX not require design_sheet and default_sheet #10272
base: main
Are you sure you want to change the base?
Conversation
7290ae6
to
eb2b139
Compare
e41d3b7
to
7424ebd
Compare
CodSpeed Performance ReportMerging #10272 will degrade performances by 10.54%Comparing Summary
Benchmarks breakdown
|
7424ebd
to
07317b8
Compare
Would not |
def test_invalid_design_matrix_format_raises_validation_error(): | ||
with pytest.raises( | ||
ConfigValidationError, | ||
match="DESIGN_MATRIX must be of format \\.xls or \\.xlsx; is 'my_matrix\\.txt'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this test removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, it was probably caught in the crossfire 🤔
This is also the current default in design2params, but there the defaultsheet default is "DefaultValues" |
07317b8
to
05f9f67
Compare
We should have the same defaults as DESIGN2PARAMS here, otherwise we might cause unnecessary confusion when transitioning users over 🙂 |
dffc7d4
to
7526c15
Compare
If I try to run without arguments for design_sheet and default_sheet I get the following error from design2params:
|
I suspect the actual default values today are Which hopefully no one uses. |
I am not sure, that seems to be the values expected to be substituted |
a91b17f
to
9683760
Compare
@@ -54,7 +54,7 @@ def test_run_poly_example_with_design_matrix(): | |||
NUM_REALIZATIONS 10 | |||
MIN_REALIZATIONS 1 | |||
GEN_DATA POLY_RES RESULT_FILE:poly.out | |||
DESIGN_MATRIX poly_design.xlsx DESIGN_SHEET:DesignSheet01 DEFAULT_SHEET:DefaultSheet | |||
DESIGN_MATRIX poly_design.xlsx DESIGN_SHEET:DesignSheet DEFAULT_SHEET:DefaultSheet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe now you can remove all those params?
c933fa1
to
1a54a5b
Compare
This commit makes the DESIGN_MATRIX keyword not require arguments for design and default sheet. Now DESIGN_SHEET defaults to `DesignSheet` and `DEFAULT_SHEET` defaults to "DefaultSheet". This is the same defaults that are used in design2params.
1a54a5b
to
88cbaec
Compare
@@ -358,7 +358,7 @@ def test_design_matrix_on_esmda(experiment_mode, ensemble_name, iterations): | |||
GEN_KW COEFFS_B coeff_priors_b | |||
GEN_KW COEFFS_C coeff_priors_c | |||
GEN_DATA POLY_RES RESULT_FILE:poly.out | |||
DESIGN_MATRIX design_matrix.xlsx DESIGN_SHEET:DesignSheet01 DEFAULT_SHEET:DefaultSheet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any tests left at all that do not use the default values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but maybe we should 🤔
0f47fd9
to
6ae9dc3
Compare
Issue
Resolves #10270
Approach
This commit makes the DESIGN_MATRIX keyword not require arguments for design and default sheet. Now DESIGN_SHEET defaults to
DesignSheet
andDEFAULT_SHEET
defaults to "DefaultSheet"(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests'
)When applicable