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

Make parameter example test shrink better #7359

Merged

Conversation

eivindjahren
Copy link
Contributor

@eivindjahren eivindjahren commented Mar 5, 2024

Makes the parameter example test shrink to a smaller size if possible. Also has the benefit that the run time goes down as the average size is smaller.

  • 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

@eivindjahren eivindjahren force-pushed the make_parameter_example_shrink_better branch 8 times, most recently from 688f374 to 2c22982 Compare March 6, 2024 12:34
@eivindjahren eivindjahren added the release-notes:skip If there should be no mention of this in release notes label Mar 6, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.28%. Comparing base (dff37c3) to head (2c22982).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7359      +/-   ##
==========================================
+ Coverage   85.25%   85.28%   +0.02%     
==========================================
  Files         382      383       +1     
  Lines       22766    22771       +5     
  Branches      878      887       +9     
==========================================
+ Hits        19410    19421      +11     
+ Misses       3249     3239      -10     
- Partials      107      111       +4     

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

decl += f'\nFORWARD_MODEL COPY_FILE(<FROM>="../../../{self.name}.{self.outext}",<TO>=.)'
return decl

def create(self, io_source: IoProvider, num_realizations: int):
Copy link
Contributor

Choose a reason for hiding this comment

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

consider rename to something with file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to create_file :P

Copy link
Contributor

@yngve-sk yngve-sk left a comment

Choose a reason for hiding this comment

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

LGTM

@eivindjahren eivindjahren force-pushed the make_parameter_example_shrink_better branch 5 times, most recently from 3b6979c to df69934 Compare March 6, 2024 14:50
@eivindjahren eivindjahren force-pushed the make_parameter_example_shrink_better branch from df69934 to 6398153 Compare March 6, 2024 14:53
@eivindjahren eivindjahren merged commit b20d565 into equinor:main Mar 6, 2024
46 of 49 checks passed
@eivindjahren eivindjahren deleted the make_parameter_example_shrink_better branch March 6, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:skip If there should be no mention of this in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants