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

Get params from storage not from config #6200

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

dafeda
Copy link
Contributor

@dafeda dafeda commented Sep 28, 2023

Pre review checklist

  • Read through the code changes carefully after finishing work
  • Make sure tests pass locally (after every commit!)
  • Prepare changes in small commits for more convenient review (optional)
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Updated documentation
  • Ensured that unit tests are added for all new behavior (See
    Ground Rules),
    and changes to existing code have good test coverage.

Pre merge checklist

  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.

@dafeda dafeda self-assigned this Sep 28, 2023
@dafeda dafeda added maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes labels Sep 28, 2023
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! Just some minor comments wrt tests

prior_ens = snake_oil_storage.get_ensemble_by_name("default_0")
experiment = snake_oil_storage.get_experiment(prior_ens.experiment_id)
posterior_ens = snake_oil_storage.create_ensemble(
experiment,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Think you can just do: prior_ens.experiment_id here

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for the other instances as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks 👍

@dafeda dafeda force-pushed the use_storage_for_params branch 4 times, most recently from 3d2424b to 5727a88 Compare September 28, 2023 12:41
@codecov-commenter
Copy link

Codecov Report

Merging #6200 (cb74949) into main (3843d9d) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6200      +/-   ##
==========================================
+ Coverage   82.64%   82.66%   +0.01%     
==========================================
  Files         347      347              
  Lines       21249    21246       -3     
  Branches      834      834              
==========================================
+ Hits        17561    17562       +1     
+ Misses       3390     3387       -3     
+ Partials      298      297       -1     
Files Coverage Δ
src/ert/analysis/_es_update.py 88.59% <100.00%> (-0.12%) ⬇️

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dafeda dafeda merged commit 53bbde1 into equinor:main Sep 29, 2023
40 checks passed
@dafeda dafeda deleted the use_storage_for_params branch September 29, 2023 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants