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

Move plottery to tools plot #8900

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

eivindjahren
Copy link
Contributor

@eivindjahren eivindjahren commented Oct 7, 2024

As plot_api is used by both ert.gui.plottery and ert.gui.tools.plot, its current location causes circular dependency problems. This PR moves plottery into ert.gui.tools.plot so that the only exposed symbol from ert.gui.tools.plot is PlotTool.

  • 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 unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

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 mentioned this pull request Oct 7, 2024
9 tasks
@eivindjahren eivindjahren added the release-notes:refactor PR changes code without changing ANY (!) behavior. label Oct 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.49%. Comparing base (a52cebf) to head (cce4760).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8900      +/-   ##
==========================================
+ Coverage   91.48%   91.49%   +0.01%     
==========================================
  Files         344      345       +1     
  Lines       21243    21263      +20     
==========================================
+ Hits        19434    19455      +21     
+ Misses       1809     1808       -1     
Flag Coverage Δ
cli-tests 39.57% <0.00%> (-0.05%) ⬇️
gui-tests 73.33% <100.00%> (+0.02%) ⬆️
performance-tests 50.15% <98.33%> (-0.04%) ⬇️
unit-tests 80.27% <98.33%> (+0.02%) ⬆️

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.

@xjules
Copy link
Contributor

xjules commented Oct 7, 2024

Could you mention the explanation (the text in the PR) also in the commit message?

As plot_api is used by both ert.gui.plottery and ert.gui.tools.plot, its
current location causes circular dependency problems. This PR moves
plottery into ert.gui.tools.plot so that the only exposed symbol from
ert.gui.tools.plot is PlotTool.
@eivindjahren
Copy link
Contributor Author

As plot_api is used by both ert.gui.plottery and ert.gui.tools.plot, its current location causes circular dependency problems. This PR moves plottery into ert.gui.tools.plot so that the only exposed symbol from ert.gui.tools.plot is PlotTool.

Done

@eivindjahren eivindjahren enabled auto-merge (squash) October 7, 2024 13:45
Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

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

nice pr @eivindjahren ! let's ship it 🚀

@eivindjahren eivindjahren merged commit c258c76 into equinor:main Oct 7, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:refactor PR changes code without changing ANY (!) behavior.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants