Skip to content

Commit

Permalink
RftPlotter to WLF (#1113)
Browse files Browse the repository at this point in the history
Co-authored-by: Øyvind Lind-Johansen <[email protected]>
  • Loading branch information
lindjoha and Øyvind Lind-Johansen authored Sep 29, 2022
1 parent f9662a2 commit ea2f955
Show file tree
Hide file tree
Showing 40 changed files with 1,548 additions and 1,160 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1078](https://github.com/equinor/webviz-subsurface/pull/1078) - Converted the `PvtPlot` plugin to WLF (Webviz Layout Framework).
- [#1092](https://github.com/equinor/webviz-subsurface/pull/1092) - Converted the `TornadoPlotterFMU` plugin to WLF (Webviz Layout Framework).
- [#1085](https://github.com/equinor/webviz-subsurface/pull/1085) - Converted the `ProdMisfit` plugin to WLF (Webviz Layout Framework).
- [#1113](https://github.com/equinor/webviz-subsurface/pull/1113) - Converted the `RftPlotter` plugin to WLF (Webviz Layout Framework). Combined the crossplot and misfit per observation to one new view: `Sim vs Obs`.


## [0.2.14] - 2022-06-28
Expand Down
25 changes: 18 additions & 7 deletions tests/integration_tests/plugin_tests/test_rft_plotter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# pylint: disable=no-name-in-module
from webviz_config.plugins import RftPlotter
from webviz_config.testing import WebvizComposite


def test_rft_plotter(dash_duo, app, shared_settings, testdata_folder) -> None:
def test_rft_plotter(
_webviz_duo: WebvizComposite, shared_settings, testdata_folder
) -> None:
plugin = RftPlotter(
app,
shared_settings["HM_SETTINGS"],
ensembles=shared_settings["HM_ENSEMBLES"],
formations=testdata_folder
Expand All @@ -24,9 +26,18 @@ def test_rft_plotter(dash_duo, app, shared_settings, testdata_folder) -> None:
/ "polygons"
/ "toptherys--gl_faultlines_extract_postprocess.csv",
)
app.layout = plugin.layout
dash_duo.start_server(app)

# This assert is commented out because it causes problem that are
# seemingly random.
# assert dash_duo.get_logs() == []
_webviz_duo.start_server(plugin)

_webviz_duo.toggle_webviz_settings_drawer()
_webviz_duo.toggle_webviz_settings_group(
plugin.view("map-view").settings_group_unique_id("map-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(
"map-view", "map-settings", "map-ensemble"
)
_webviz_duo.wait_for_contains_text(my_component_id, "iter-0")
assert _webviz_duo.get_logs() == []
2 changes: 0 additions & 2 deletions webviz_subsurface/plugins/_rft_plotter/_callbacks/__init__.py

This file was deleted.

222 changes: 0 additions & 222 deletions webviz_subsurface/plugins/_rft_plotter/_callbacks/callbacks.py

This file was deleted.

Loading

0 comments on commit ea2f955

Please sign in to comment.