-
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
Document everest forward models #8940
Document everest forward models #8940
Conversation
24e50da
to
fd9aa5a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8940 +/- ##
==========================================
- Coverage 91.00% 90.95% -0.06%
==========================================
Files 349 352 +3
Lines 21641 21691 +50
==========================================
+ Hits 19695 19729 +34
- Misses 1946 1962 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
fd9aa5a
to
b377530
Compare
|
||
|
||
@hookimpl | ||
def get_forward_model_documentations(): |
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.
Is this needed? I see there are similar entries in there from before, and wondering the same thing about them (just relevant, but outside scope of PR)
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 do not think the other functions in this interface provides what we want and I don't want to change existing behavior. Or what were you thinking about?
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.
Might be wrong here, but I think @hookimpl just means it is an implementation, so this empty function just provides an empty documentation, so it should be possible to remove it without any side effects (I think, needs to be double checked)
|
||
def get_documentation(self) -> Dict[str, Any]: | ||
docs = self.hook.get_forward_model_documentations() | ||
return docs[0] if docs else {} |
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 [0] here instead of merging dicts? Maybe non-relevant edge case but what if there were other installed python packages containing forward models for everest (currently only everest-models though)
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.
Will fix
|
60a1ae7
to
5b9b929
Compare
Its in the everest models PR equinor/everest-models#64 |
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 job! LGTM
5b9b929
to
7d844b8
Compare
Issue
Resolves #8835
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable