Skip to content

Commit

Permalink
Add deprecation warning for cross-section plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Apr 27, 2021
1 parent 1f7eca1 commit 7667b91
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED] - YYYY-MM-DD
### Changed
- [#612](https://github.com/equinor/webviz-subsurface/pull/612) - New features in ReservoirSimulationTimeSeries: Statistical lines, option to remove history trace, histogram available when plotting individual realizations.
- [#618](https://github.com/equinor/webviz-subsurface/pull/618) - Added deprecation warning to `HorizonUncertaintyViewer`,
`WellCrossSection` and `WellCrossSectionFMU`. These plugins will soon be removed. Relevant functionality is implememented
in the new `StructuralUncertainty` plugin.


### Fixed
- [#615](https://github.com/equinor/webviz-subsurface/pull/615) - Improve table performance of AssistedHistoryMatchingAnalysis.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"pyscal>=0.7.5",
"scipy>=1.2",
"statsmodels>=0.12.1", # indirect dependency through https://plotly.com/python/linear-fits/
"webviz-config>=0.2.7",
"webviz-config>=0.3.0",
"webviz-subsurface-components>=0.3.0",
"xtgeo>=2.14",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from webviz_config import WebvizPluginABC
from webviz_config import WebvizSettings
from webviz_config.webviz_store import webvizstore
from webviz_config.deprecation_decorators import deprecated_plugin

import webviz_subsurface
from webviz_subsurface._models import SurfaceLeafletModel
Expand All @@ -29,6 +30,10 @@
from ._huv_table import FilterTable


@deprecated_plugin(
"This plugin will soon be deprecated. "
"Relevant functionality is implemented in the StructuralUncertainty plugin."
)
class HorizonUncertaintyViewer(WebvizPluginABC):
"""Visualizes depth uncertainty for surfaces in map view and cross section view.
Expand Down
5 changes: 5 additions & 0 deletions webviz_subsurface/plugins/_well_cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from webviz_subsurface_components import LeafletMap
from webviz_config import WebvizPluginABC
from webviz_config.webviz_store import webvizstore
from webviz_config.deprecation_decorators import deprecated_plugin

from webviz_subsurface._models import SurfaceLeafletModel
from .._datainput.xsection import XSectionFigure
Expand All @@ -19,6 +20,10 @@
from .._datainput.surface import load_surface


@deprecated_plugin( # type: ignore
"This plugin will soon be deprecated. "
"Relevant functionality is implemented in the StructuralUncertainty plugin."
)
class WellCrossSection(WebvizPluginABC):
"""Displays a cross section along a well with intersected surfaces,
and optionally seismic cubes.
Expand Down
5 changes: 5 additions & 0 deletions webviz_subsurface/plugins/_well_cross_section_fmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from webviz_config import WebvizSettings
from webviz_config.webviz_store import webvizstore
from webviz_config.common_cache import CACHE
from webviz_config.deprecation_decorators import deprecated_plugin

from webviz_subsurface._models import SurfaceLeafletModel
from .._datainput.fmu_input import get_realizations
Expand All @@ -27,6 +28,10 @@
from .._datainput.well import load_well

# pylint: disable=too-many-instance-attributes
@deprecated_plugin( # type: ignore
"This plugin will soon be deprecated. "
"Relevant functionality is implemented in the StructuralUncertainty plugin."
)
class WellCrossSectionFMU(WebvizPluginABC):
"""Well cross-section displaying statistical surfaces from a FMU ensemble.
Expand Down

0 comments on commit 7667b91

Please sign in to comment.