Skip to content

Commit

Permalink
[deploy test]
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv authored and anders-kiaer committed Dec 11, 2022
1 parent e9d3036 commit 35fa142
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 25 deletions.
4 changes: 2 additions & 2 deletions webviz_subsurface/_providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
SimulatedSurfaceAddress,
StatisticalSurfaceAddress,
SurfaceAddress,
SurfaceArrayMeta,
SurfaceArrayServer,
SurfaceImageMeta,
SurfaceImageServer,
SurfaceArrayServer,
SurfaceArrayMeta,
)
from .ensemble_table_provider import (
ColumnMetadata,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._types import QualifiedDiffSurfaceAddress, QualifiedSurfaceAddress
from .ensemble_surface_provider import (
EnsembleSurfaceProvider,
ObservedSurfaceAddress,
Expand All @@ -6,9 +7,5 @@
SurfaceAddress,
)
from .ensemble_surface_provider_factory import EnsembleSurfaceProviderFactory
from .surface_image_server import (
SurfaceImageMeta,
SurfaceImageServer,
)
from .surface_array_server import SurfaceArrayMeta, SurfaceArrayServer
from ._types import QualifiedSurfaceAddress, QualifiedDiffSurfaceAddress
from .surface_image_server import SurfaceImageMeta, SurfaceImageServer
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import io
import hashlib
import io
import json
import logging
import math
Expand All @@ -17,13 +17,13 @@
from webviz_subsurface._utils.perf_timer import PerfTimer

from ._surface_to_float32_array import surface_to_float32_array
from ._types import QualifiedDiffSurfaceAddress, QualifiedSurfaceAddress
from .ensemble_surface_provider import (
ObservedSurfaceAddress,
SimulatedSurfaceAddress,
StatisticalSurfaceAddress,
SurfaceAddress,
)
from ._types import QualifiedSurfaceAddress, QualifiedDiffSurfaceAddress

LOGGER = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
from webviz_subsurface._utils.perf_timer import PerfTimer

from ._surface_to_image import surface_to_png_bytes_optimized
from ._types import QualifiedDiffSurfaceAddress, QualifiedSurfaceAddress
from .ensemble_surface_provider import (
ObservedSurfaceAddress,
SimulatedSurfaceAddress,
StatisticalSurfaceAddress,
SurfaceAddress,
)
from ._types import QualifiedSurfaceAddress, QualifiedDiffSurfaceAddress

LOGGER = logging.getLogger(__name__)

Expand Down
6 changes: 2 additions & 4 deletions webviz_subsurface/plugins/_map_viewer_fmu/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any, Callable, Dict, List, Optional, Tuple, Union

import numpy as np
from dash import ALL, MATCH, Input, Output, State, callback, callback_context, no_update
from dash import ALL, MATCH, Input, Output, State, callback, callback_context
from dash.exceptions import PreventUpdate
from webviz_config import EncodedFile
from webviz_config.utils._dash_component_utils import calculate_slider_step
Expand All @@ -24,12 +24,11 @@
StatisticalSurfaceAddress,
SurfaceAddress,
SurfaceArrayServer,
SurfaceArrayMeta,
)

from ._layer_model import DeckGLMapLayersModel
from ._tmp_well_pick_provider import WellPickProvider
from ._types import SurfaceMode, LayerTypes
from ._types import LayerTypes, SurfaceMode
from .layout import (
DefaultSettings,
LayoutElements,
Expand Down Expand Up @@ -366,7 +365,6 @@ def _update_map(
},
"colorMapName": data["colormap"],
"colorMapRange": color_range,

}
layer_idx = None
for layer in layers:
Expand Down
12 changes: 1 addition & 11 deletions webviz_subsurface/plugins/_map_viewer_fmu/map_viewer_fmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from dash import Dash, html
from webviz_config import WebvizPluginABC, WebvizSettings
from webviz_config.deprecation_decorators import deprecated_plugin_arguments

from webviz_subsurface._providers import (
EnsembleFaultPolygonsProviderFactory,
Expand All @@ -23,14 +22,6 @@
from .color_tables import default_color_tables
from .layout import main_layout

def check_deprecation_argument(hillshading_enabled: bool) -> str:
if hillshading_enabled is None:
return None
return (
"The argument 'hillshading_enabled' no longer has any effect "
"and can be removed from the config file."
)


class MapViewerFMU(WebvizPluginABC):
"""Surface visualizer for FMU ensembles.
Expand Down Expand Up @@ -88,7 +79,6 @@ class MapViewerFMU(WebvizPluginABC):
"""

# pylint: disable=too-many-arguments, too-many-locals
@deprecated_plugin_arguments(check_deprecation_argument)
def __init__(
self,
app: Dash,
Expand All @@ -105,7 +95,7 @@ def __init__(
):

super().__init__()

self._hillshading = hillshading_enabled
surface_provider_factory = EnsembleSurfaceProviderFactory.instance()
fault_polygons_provider_factory = (
EnsembleFaultPolygonsProviderFactory.instance()
Expand Down

0 comments on commit 35fa142

Please sign in to comment.