-
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
Make everest config imutable #9842
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #9842 will not alter performanceComparing Summary
|
6db26e0
to
9bfd0a3
Compare
211d755
to
b13f034
Compare
b13f034
to
b734a69
Compare
@@ -30,20 +30,22 @@ | |||
ProgressBar = None # type: ignore | |||
|
|||
|
|||
def export_with_progress(config: EverestConfig, export_ecl=True): | |||
def export_with_progress( | |||
config: EverestConfig, export_config: ExportConfig, export_ecl=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.
nice
@@ -503,9 +502,15 @@ def test_complete_status_for_normal_run_monitor( | |||
"everest.bin.everest_script.everserver_status", | |||
return_value={"status": ServerStatus.never_run, "message": None}, | |||
) | |||
@patch("everest.simulator.everest_to_ert._everest_to_ert_config_dict", return_value={"SUMMARY": "*"}) | |||
@patch( |
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 diff for this file in commit "Avoid everest export config overwriting"
seems to be only an autoformatting + deletion of unused import?
initial_guess=0, | ||
variables=[{"name": "x"}, {"name": "y"}], | ||
) | ||
config_dict = config.model_dump(exclude_none=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.
Nitpick/style suggestion: Would do **
notation to declare the object in one go rather than assigning props to the dict, similar for other cases assigning stuff to the config dict
Overall looks good, only some minor comments on style/commit structure |
Issue
Resolves #9788
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'pytest tests/ert/unit_tests tests/everest -n auto --hypothesis-profile=fast -m "not integration_test"'
)When applicable