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

Replaced use of DashSubsurfaceViewer with SubsurfaceViewer #1312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dash.development.base_component import Component
from webviz_config.utils import StrEnum
from webviz_config.webviz_plugin_subclasses import ViewABC, ViewElementABC
from webviz_subsurface_components import DashSubsurfaceViewer
from webviz_subsurface_components import SubsurfaceViewer


class MainView(ViewABC):
Expand Down Expand Up @@ -48,7 +48,7 @@ def inner_layout(self) -> Component:
children=[
html.Div(
[
DashSubsurfaceViewer(
SubsurfaceViewer(
id=self.register_component_unique_id(
self.Ids.DECKGL_MAP
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dash.development.base_component import Component
from webviz_config.utils import StrEnum
from webviz_config.webviz_plugin_subclasses import ViewElementABC
from webviz_subsurface_components import DashSubsurfaceViewer
from webviz_subsurface_components import SubsurfaceViewer


class VTKView3D(ViewElementABC):
Expand Down Expand Up @@ -45,7 +45,7 @@ def inner_layout(self) -> Component:
html.Div(
style={"position": "absolute", "width": "100%", "height": "90%"},
children=[
DashSubsurfaceViewer(
SubsurfaceViewer(
id=self.register_component_unique_id(VTKView3D.Ids.VIEW),
layers=[
{
Expand Down
4 changes: 2 additions & 2 deletions webviz_subsurface/plugins/_map_viewer_fmu/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import webviz_core_components as wcc
from dash import dcc, html
from webviz_subsurface_components import DashSubsurfaceViewer # type: ignore
from webviz_subsurface_components import SubsurfaceViewer # type: ignore

from webviz_subsurface._utils.enum_shim import StrEnum

Expand Down Expand Up @@ -271,7 +271,7 @@ def __init__(
) -> None:
super().__init__(
children=html.Div(
DashSubsurfaceViewer(
SubsurfaceViewer(
id={"id": get_uuid(LayoutElements.DECKGLMAP), "tab": tab},
layers=update_map_layers(1, render_surfaces_as_images),
colorTables=color_tables,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def layout(self) -> html.Div:
self.initial_well_name
)
),
colorTables=self.colortables,
colorMapFunctions=self.colortables,
axisMnemos={"MD": ["MD"], "TVD": ["TVD"]},
),
)
Expand Down
Loading