Skip to content

Commit

Permalink
Parameter vs parameter (#1083)
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Seglem (OG SUB RPE) <[email protected]>
Co-authored-by: Eirik Sundby Håland (OG SUB RPE) <[email protected]>
Co-authored-by: JinCheng2022 <[email protected]>
  • Loading branch information
4 people authored Sep 29, 2022
1 parent c2e073f commit deef26f
Show file tree
Hide file tree
Showing 13 changed files with 735 additions and 496 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- [#1097](https://github.com/equinor/webviz-subsurface/pull/1007) - `smry2arrow_batch` - Now supports an arbitrary number of paths as input, meaning that it is no longer needed to wrap a wildcarded runpath pattern with "". It is though still required if defining a wildcarded eclbase.
- [#1083](https://github.com/equinor/webviz-subsurface/pull/1083) - Converted the `ParameterCorrelation` plugin to WLF (Webviz Layout Framework).
- [#1080](https://github.com/equinor/webviz-subsurface/pull/1080) - Converted the `GroupTree` plugin to WLF (Webviz Layout Framework).
- [#1089](https://github.com/equinor/webviz-subsurface/pull/1089) - Converted the `WellAnalysis` plugin to WLF (Webviz Layout Framework).
- [#1086](https://github.com/equinor/webviz-subsurface/pull/1086) - Converted the `SimulationTimeSeries` plugin to WLF (Webviz Layout Framework). Also increase maximum number of initial vectors from 3 to 5.
Expand Down
25 changes: 18 additions & 7 deletions tests/integration_tests/plugin_tests/test_parameter_correlation.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
# pylint: disable=no-name-in-module
from webviz_config.plugins import ParameterCorrelation
from webviz_config.testing import WebvizComposite


def test_parameter_correlation(dash_duo, app, shared_settings) -> None:
def test_parameter_correlation(_webviz_duo: WebvizComposite, shared_settings) -> None:

plugin = ParameterCorrelation(
app,
parameter_correlation = ParameterCorrelation(
shared_settings["HM_SETTINGS"],
ensembles=shared_settings["HM_ENSEMBLES"],
drop_constants=True,
)
app.layout = plugin.layout
dash_duo.start_server(app)
assert dash_duo.get_logs() == []

_webviz_duo.start_server(parameter_correlation)

_webviz_duo.toggle_webviz_settings_drawer()
_webviz_duo.toggle_webviz_settings_group(
parameter_correlation.view("paracorr").settings_group_unique_id("settings")
)
# Using str literals directly, not IDs from the plugin as intended because
# the run test did not accept the imports

my_component_id = _webviz_duo.view_settings_group_unique_component_id(
"paracorr", "settings", "shared-ensemble"
)
_webviz_duo.wait_for_contains_text(my_component_id, "iter-0")
assert _webviz_duo.get_logs() == []
43 changes: 0 additions & 43 deletions tests/integration_tests/test_parameter_corr.py

This file was deleted.

Loading

0 comments on commit deef26f

Please sign in to comment.