Skip to content
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 validation for num_realizations > 1 for analysis modules #8404

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

xjules
Copy link
Contributor

@xjules xjules commented Aug 6, 2024

Issue
Resolves #8348

blocked by semeio tests should be ok now

Approach
Inject validation where needed.

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure tests pass locally (after every commit!)

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@xjules xjules added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Aug 6, 2024
@xjules xjules self-assigned this Aug 6, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.83%. Comparing base (10f9df6) to head (5223714).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8404      +/-   ##
==========================================
+ Coverage   90.66%   90.83%   +0.16%     
==========================================
  Files         347      347              
  Lines       21137    21145       +8     
==========================================
+ Hits        19164    19207      +43     
+ Misses       1973     1938      -35     
Flag Coverage Δ
gui-tests 76.10% <66.66%> (+<0.01%) ⬆️
integration-tests 54.25% <88.88%> (+0.03%) ⬆️
unit-tests 68.90% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@berland
Copy link
Contributor

berland commented Aug 8, 2024

rebase to trigger rerun of semeio?

@xjules xjules closed this Aug 8, 2024
@xjules xjules reopened this Aug 8, 2024
@xjules xjules removed the blocked label Aug 8, 2024
@berland
Copy link
Contributor

berland commented Aug 12, 2024

Could there be something in the user documentation that needs to be updated following this change?

@xjules
Copy link
Contributor Author

xjules commented Aug 12, 2024

Could there be something in the user documentation that needs to be updated following this change?

I thought it is somewhat implicit ert knowledge. But you are right, I'll add it.

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.

LGTM!

if restart_run
else 0,
starting_iteration=(
storage.get_ensemble(prior_ensemble).iteration + 1 if restart_run else 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just cosmetic? No problem for me, but suggest putting in a separate commit.

@xjules xjules merged commit ebc4b04 into equinor:main Aug 12, 2024
37 checks passed
@xjules xjules deleted the num_realz branch August 12, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible to run ensemble based methods with 1 realization
4 participants