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 experiment name #6688

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

aronhoyer
Copy link
Contributor

Issue
Resolves #6386

Approach
Adds a text input field whose placeholder text is the simulation mode.

If no name is provided, the placeholder text is used as the experiment name.

Screenshot 2023-11-27 at 13 14 24

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.

@aronhoyer aronhoyer added the release-notes:new-feature Automatically categorise as new feature in release notes label Nov 28, 2023
@aronhoyer aronhoyer self-assigned this Nov 28, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (87fc886) 83.57% compared to head (d7d9c03) 83.62%.
Report is 2 commits behind head on main.

Files Patch % Lines
src/ert/gui/simulation/simulation_panel.py 50.00% 1 Missing ⚠️
src/ert/storage/local_experiment.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6688      +/-   ##
==========================================
+ Coverage   83.57%   83.62%   +0.05%     
==========================================
  Files         359      360       +1     
  Lines       20968    21025      +57     
  Branches      948      948              
==========================================
+ Hits        17523    17582      +59     
+ Misses       3151     3149       -2     
  Partials      294      294              

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

@aronhoyer aronhoyer force-pushed the add-experiment-name branch 2 times, most recently from 47a9875 to 2834988 Compare November 28, 2023 11:15
Copy link
Contributor

@dafeda dafeda left a comment

Choose a reason for hiding this comment

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

LGTM, but good i @oyvindeide takes a look as well.

@@ -42,6 +43,11 @@ def __init__(

self.setObjectName("ensemble_smoother_panel")

self.name_field = QLineEdit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Even though its not consistent we try to name private class members with _. self._name_field

)

experiment_id.migrate(self.path)
self._add_migration_information(4, "experiment_id")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will have to be added to the other versions as well. The reason is because we always jump straight to the latest version, and dont upgrade iteratively. It might be time to start doing that, but that is outside the scope here.

@oyvindeide
Copy link
Collaborator

Looks like a good improvement! Just a comment about the migrations that needs to be addressed. Just remember to squash commits before merging.

@aronhoyer aronhoyer force-pushed the add-experiment-name branch 2 times, most recently from e5628cb to c2a9c3d Compare December 4, 2023 11:00
Add input field for experiment name

Add migration for experiment name
Current default name set through migration isn't sensible at all due to the limited metadata
we have access to at migration time

Rename private class member

Add experiment_id migration to all versions
@aronhoyer aronhoyer merged commit 9866742 into equinor:main Dec 6, 2023
44 checks passed
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
Archived in project
Development

Successfully merging this pull request may close these issues.

Introduce name for experiments
5 participants