-
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 reading designmatrix #8800
Add support for reading designmatrix #8800
Conversation
6fe00b5
to
3165420
Compare
1d0ec6d
to
b45b9f6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8800 +/- ##
==========================================
+ Coverage 91.65% 91.70% +0.04%
==========================================
Files 343 343
Lines 21168 21231 +63
==========================================
+ Hits 19402 19470 +68
+ Misses 1766 1761 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b45b9f6
to
92ddf3a
Compare
|
@@ -90,6 +88,9 @@ def __post_init__(self) -> None: | |||
) | |||
self._validate() | |||
|
|||
def __contains__(self, item: str) -> bool: | |||
return item in [v.name for v in self.transform_function_definitions] |
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.
Can do this lazily?
return item in [v.name for v in self.transform_function_definitions] | |
return any(item in v.name for v in self.transform_function_definitions) |
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.
Not sure if that does the same thing, but will see if there is a better way for this?
4dc66f7
to
7e0671a
Compare
0e23365
to
6732ce9
Compare
ce7cee8
to
010fe9f
Compare
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.
Very nice PR @larsevj ! 🎉 🚀
Could you squash the commits since I think you can't really separate it to a clever chunks.
19c1699
to
897a4a0
Compare
8d5cade
to
e5ad2c4
Compare
- Adds functionality to the DesignMatrix dataclass for reading design matrix excel files into pandas dataframes, akin to design2params in semeio.
e5ad2c4
to
87fa0ff
Compare
Issue
Resolves #8902
Supports reading excel files containing design matrix with ert parameters into pandas dataframes.
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable