-
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 improve performances by 19.36%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 🤔
"my_matrix.xlsx", | ||
"DESIGN_:design", | ||
"DEFAULT_SHEET:default", | ||
] |
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.
What does happen if you input this? Or if you input for instance DESIGN_MATRIX some_file.xlsx design_sheet default
or something else that does not really match the intended input?
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.
Then we use the default
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.
I will add a test^
This is also the current default in design2params, but there the defaultsheet default is "DefaultValues" |
This commit makes the DESIGN_MATRIX keyword not require arguments for design and default sheet. Now DESIGN_SHEET defaults to `DesignSheet01` and `DEFAULT_SHEET` defaults to "DefaultSheet"
07317b8
to
05f9f67
Compare
We should have the same defaults as DESIGN2PARAMS here, otherwise we might cause unnecessary confusion when transitioning users over 🙂 |
Issue
Resolves #10270
Approach
This commit makes the DESIGN_MATRIX keyword not require arguments for design and default sheet. Now DESIGN_SHEET defaults to
DesignSheet01
andDEFAULT_SHEET
defaults to "DefaultSheet"(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests'
)When applicable