Skip to content

Remove dimensionality from GUI - #14239

Draft
eilskra wants to merge 1 commit into
equinor:mainfrom
eilskra:remove-dim
Draft

Remove dimensionality from GUI#14239
eilskra wants to merge 1 commit into
equinor:mainfrom
eilskra:remove-dim

Conversation

@eilskra

@eilskra eilskra commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Using existing data_origin to achieve same result

Issue
Resolves #14234

Approach
Short description of the approach

(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 unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When screenshots are changed: Review screenshot-PR in ert-testdata,
    merge screenshot-PR in ert-testdata before merging this PR.
  • 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: Add backport label to latest release (format: 'backport release-branch-name')

Using existing data_origin to achieve same result

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Replaces GUI plot dimensionality checks with data_origin-based tab selection and removes redundant dimensionality metadata.

Changes:

  • Centralizes plot-tab availability by data origin.
  • Removes dimensionality fields from plotting and parameter models.
  • Updates GUI, API, migration, endpoint, and snapshot tests.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/ert/unit_tests/storage/test_storage_migration.py Verifies migrated parameter types.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_single_test_run_matches_snapshot/snake_oilsnake_oil.ert/snake_oil.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_single_test_run_matches_snapshot/poly_examplepoly.ert/poly.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_single_test_run_matches_snapshot/heat_equationconfig.ert/config.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_esmda_matches_snapshot/snake_oilsnake_oil.ert/snake_oil.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_esmda_matches_snapshot/poly_examplepoly.ert/poly.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_esmda_matches_snapshot/heat_equationconfig.ert/config.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_smoother_matches_snapshot/snake_oilsnake_oil.ert/snake_oil.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_smoother_matches_snapshot/poly_examplepoly.ert/poly.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_smoother_matches_snapshot/heat_equationconfig.ert/config.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_experiment_matches_snapshot/snake_oilsnake_oil.ert/snake_oil.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_experiment_matches_snapshot/poly_examplepoly.ert/poly.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_ensemble_experiment_matches_snapshot/heat_equationconfig.ert/config.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_enif_matches_snapshot/snake_oilsnake_oil.ert/snake_oil.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_enif_matches_snapshot/poly_examplepoly.ert/poly.json Removes serialized dimensionality.
tests/ert/unit_tests/run_models/snapshots/test_experiment_serialization/test_that_dumped_enif_matches_snapshot/heat_equationconfig.ert/config.json Removes serialized dimensionality.
tests/ert/unit_tests/gui/tools/plot/test_plot_window.py Tests data-origin tab routing.
tests/ert/unit_tests/gui/tools/plot/test_plot_api.py Updates key-definition expectations.
tests/ert/unit_tests/gui/tools/plot/test_data_type_keys_widget.py Updates key fixtures.
tests/ert/unit_tests/gui/tools/plot/conftest.py Removes dimensionality from API fixtures.
tests/ert/unit_tests/gui/plotting/ert_plots/test_misfits_plot.py Updates misfit key fixtures.
tests/ert/unit_tests/dark_storage/test_http_endpoints.py Updates endpoint response expectations.
tests/ert/ui_tests/gui/test_rft_visualizations.py Validates RFT tabs by origin.
tests/ert/ui_tests/gui/test_plotting_of_snake_oil.py Validates plotting tabs by origin.
tests/ert/ui_tests/gui/test_breakthrough_visualization.py Validates breakthrough tabs by origin.
src/ert/gui/plotting/widgets/plot_widget.py Removes dimensionality from the plotter protocol.
src/ert/gui/plotting/utils/plot_maps.py Defines origin-to-tab mappings.
src/ert/gui/plotting/shared_plots/ensemble.py Removes plot dimensionality.
src/ert/gui/plotting/plot_window.py Selects and remembers tabs by availability.
src/ert/gui/plotting/plot_api.py Removes dimensionality from plot keys.
src/ert/gui/plotting/everest_plots/everest_objective_function_plot.py Removes plot dimensionality.
src/ert/gui/plotting/everest_plots/everest_gradients_plot.py Removes plot dimensionality.
src/ert/gui/plotting/everest_plots/everest_controls_plot.py Removes plot dimensionality.
src/ert/gui/plotting/everest_plots/everest_constraints_plot.py Removes plot dimensionality.
src/ert/gui/plotting/everest_plots/everest_batch_objective_function_plot.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/std_dev.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/statistics.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/misfits.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/histogram.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/gaussian_kde.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/distribution.py Removes plot dimensionality.
src/ert/gui/plotting/ert_plots/cesp.py Removes plot dimensionality.
src/ert/config/surface_config.py Removes parameter dimensionality.
src/ert/config/gen_kw_config.py Removes parameter dimensionality.
src/ert/config/field.py Removes parameter dimensionality.
src/ert/config/everest_control.py Removes parameter dimensionality.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov-commenter

codecov-commenter commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.02%. Comparing base (b481717) to head (f5b9913).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14239      +/-   ##
==========================================
+ Coverage   91.97%   92.02%   +0.05%     
==========================================
  Files         484      484              
  Lines       33676    33667       -9     
==========================================
+ Hits        30972    30981       +9     
+ Misses       2704     2686      -18     
Flag Coverage Δ
cli-tests 36.54% <0.00%> (+<0.01%) ⬆️
fuzz 44.39% <28.57%> (+0.02%) ⬆️
gui-tests 58.66% <100.00%> (-0.03%) ⬇️
performance-and-unit-tests 81.19% <100.00%> (+0.26%) ⬆️
test 45.98% <28.57%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
src/ert/config/everest_control.py 87.50% <ø> (-0.16%) ⬇️
src/ert/config/field.py 93.57% <ø> (-0.05%) ⬇️
src/ert/config/gen_kw_config.py 98.24% <ø> (-0.02%) ⬇️
src/ert/config/surface_config.py 97.67% <ø> (-0.02%) ⬇️
src/ert/gui/plotting/ert_plots/cesp.py 79.66% <ø> (-0.34%) ⬇️
src/ert/gui/plotting/ert_plots/distribution.py 85.18% <ø> (-0.27%) ⬇️
src/ert/gui/plotting/ert_plots/gaussian_kde.py 97.61% <ø> (-0.06%) ⬇️
src/ert/gui/plotting/ert_plots/histogram.py 96.49% <ø> (-0.04%) ⬇️
src/ert/gui/plotting/ert_plots/misfits.py 97.56% <ø> (-0.02%) ⬇️
src/ert/gui/plotting/ert_plots/statistics.py 91.26% <ø> (-0.09%) ⬇️
... and 11 more

... and 6 files with indirect coverage changes

@codspeed-hq

codspeed-hq Bot commented Aug 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing eilskra:remove-dim (f5b9913) with main (cb50287)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dimensionality from GUI

3 participants