-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add support for design matrix keyword in ert config #8803
Add support for design matrix keyword in ert config #8803
Conversation
7cb27a8
to
7da32b3
Compare
7da32b3
to
f29e219
Compare
Wondering if I should separate the dataclass |
I was actually thinking the same :) Let's move it to a standalone file 👍 |
def test_invalid_design_matrix_format_raises_validation_error(): | ||
with pytest.raises( | ||
ConfigValidationError, | ||
match="DESIGN_MATRIX must be of format .xls or .xslx; 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.
This needs to be updated:
tests/ert/unit_tests/config/test_analysis_config.py::test_invalid_design_matrix_format_raises_validation_error - AssertionError: Regex pattern did not match.
Regex: "DESIGN_MATRIX must be of format .xls or .xslx; is 'my_matrix.txt'"
Input: 'DESIGN_MATRIX must be of format .xls or .xslx; is my_matrix.txt'
f29e219
to
138faf4
Compare
6ccd250
to
d3fbff2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8803 +/- ##
==========================================
+ Coverage 91.31% 91.38% +0.07%
==========================================
Files 342 343 +1
Lines 21028 21063 +35
==========================================
+ Hits 19202 19249 +47
+ Misses 1826 1814 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Nice @larsevj ! Could you squash the commits before you hit merge? 🚀
d3fbff2
to
aee9f51
Compare
- Expects the format: DESIGN_MATRIX file.xlsx DESIGN_SHEET:design DEFAULT_SHEET:default where file.xlsx is an existing file. - Scaffolding for further support for reading parameter values from design matrix excel files.
aee9f51
to
ae264ca
Compare
Issue
Resolves #8689
Adds the new keyword
DESIGN_MATRIX
to ert config. Intended to be used to read a design_matrix excel file for sensitivity analysis in the future.No documentation, will probably be better to write this after it is fully functional.
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable