-
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
Raise error on invalid use of runpath placeholders #6731
Raise error on invalid use of runpath placeholders #6731
Conversation
59489d0
to
91ac616
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.
LGTM! Just need to change the deprecation test.
[ | ||
("simulations/realizations-<IENS>/iter-<ITER>", False), | ||
("simulations/realizations-<IENS>/iter-%d", True), | ||
("simulations/realizations-%d", True), |
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 would be a breaking change. Running an ensemble experiment on poly with this path works fine.
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.
There is a conflict with respect to what the docs state and what the code previously allowed.
Which of these are correct is obviously up for debate.
Docs state;
Use of less than two %d is prohibited
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.
The problem detected was mixing the deprecated %d
syntax, with the newer <IENS>
and <ITER>
placeholders. We could allow one %d
but at the same time rather check we don't mix the two styles.
Would that be an acceptable solution?
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.
The docs are not in accordance with how ert is in use. Not using <ITER>
in RUNPATH is normal when doing e.g. prediction runs.
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.
Let's update the docs too then.
Using one %d
or just <IENS>
is okay, but mixing them is not.
Also more than two %d
's does also not make sense.
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.
Implemented as such.
91ac616
to
a757d71
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6731 +/- ##
==========================================
+ Coverage 83.56% 83.57% +0.01%
==========================================
Files 359 359
Lines 20952 20956 +4
Branches 948 948
==========================================
+ Hits 17509 17515 +6
+ Misses 3149 3147 -2
Partials 294 294 ☔ View full report in Codecov by Sentry. |
b4899ed
to
883d65a
Compare
883d65a
to
c6a11e4
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.
Is this Error message a little too generic? It might be difficult to figure out what you did wrong? Especially if we are still supporting other types of runpath, than the DEFAULT one?
c4e9699
to
214c045
Compare
That's a good point. Lets make them more specific to convey more information. |
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.
LGTM 👍
Issue
Resolves #6617
According to FMU-docs:
https://fmu-docs.equinor.com/docs/ert/reference/configuration/keywords.html#runpath
Pre review checklist
Ground Rules),
and changes to existing code have good test coverage.
Pre merge checklist