Skip to content

Add new forward model configuration style #10597

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

Merged
merged 4 commits into from
May 7, 2025

Conversation

yngve-sk
Copy link
Contributor

@yngve-sk yngve-sk commented Apr 10, 2025

Makes it possible to specify results per forward model in Everest, as well as saving GEN_DATA (that is not necessarily a constraint or objective) from forward model runs

Issue
Resolves #9615

Copy link

codspeed-hq bot commented Apr 10, 2025

CodSpeed Performance Report

Merging #10597 will not alter performance

Comparing yngve-sk:25.04.10.everest-fm-config-change (43dcba2) with main (50b9c53)

Summary

✅ 25 untouched benchmarks
🆕 1 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
🆕 test_speed_performance_of_doing_enif_update[setup_es_benchmark0] N/A 124.1 ms N/A

@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch 4 times, most recently from d436308 to c08e84f Compare April 14, 2025 13:21
@yngve-sk yngve-sk marked this pull request as ready for review April 15, 2025 07:08
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch 2 times, most recently from f4edd63 to 7ccd960 Compare April 16, 2025 07:47
@yngve-sk yngve-sk closed this Apr 22, 2025
@yngve-sk yngve-sk reopened this Apr 22, 2025
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch 11 times, most recently from 2e08023 to 3d84617 Compare April 22, 2025 11:36
@yngve-sk yngve-sk self-assigned this Apr 22, 2025
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch from 3943605 to bfae075 Compare April 22, 2025 12:21
Copy link
Collaborator

@oyvindeide oyvindeide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Some comments which might simplify it a bit

@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch 2 times, most recently from cee48fb to 50275f0 Compare April 23, 2025 07:11
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch from a182c95 to 7ef2639 Compare April 29, 2025 10:39
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch 7 times, most recently from 0af90ee to 93aaabf Compare April 30, 2025 07:30
Copy link
Collaborator

@oyvindeide oyvindeide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I just have some minor questions left!

Copy link
Collaborator

@oyvindeide oyvindeide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Just two minor comments

@classmethod
def validate_no_data_file(cls, values: dict[str, Any]) -> dict[str, Any]:
data_file = values.get("model", {}).get("data_file", None)
eclbase = values.get("definitions", {}).get("eclbase", None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have a different default than None here, so that the text below makes more sense, for example: <name_of_smspec>

@@ -575,7 +575,7 @@ def test_opm_fail_default_summary_keys(copy_egg_test_data_to_tmp):

config = EverestConfig.load_file(CONFIG_FILE)
# The Everest config file will fail to load as an Eclipse data file
config.model.data_file = os.path.realpath(CONFIG_FILE)
# config.model.data_file = os.path.realpath(CONFIG_FILE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be deleted

@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch from f56d2ab to 6817af9 Compare May 7, 2025 07:55
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch from 6817af9 to e6b154d Compare May 7, 2025 08:15
@yngve-sk yngve-sk force-pushed the 25.04.10.everest-fm-config-change branch from e6b154d to 43dcba2 Compare May 7, 2025 08:45
@yngve-sk yngve-sk merged commit 205ae5f into equinor:main May 7, 2025
27 checks passed
@yngve-sk yngve-sk added the release-notes:new-feature Automatically categorise as new feature in release notes label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:new-feature Automatically categorise as new feature in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context validation of the simulator specific keywords
2 participants