Skip to content

Commit

Permalink
Add missing tour_steps function and fixed some bugs in the docstring (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lindjoha authored Apr 30, 2021
1 parent 23e852e commit 0041864
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED] - YYYY-MM-DD
### Changed
- [#618](https://github.com/equinor/webviz-subsurface/pull/618) - Added deprecation warning to `HorizonUncertaintyViewer`,
- [#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
- [#621](https://github.com/equinor/webviz-subsurface/pull/621) - Fixed issue in `StructuralUncertainty` where map base layers did not load
- [#621](https://github.com/equinor/webviz-subsurface/pull/621) - Fixed issue in `StructuralUncertainty` where map base layers did not load
correctly from persisted user settings.
- [#626](https://github.com/equinor/webviz-subsurface/pull/626) - Fixed small bugs in the docstring of `WellCompletions` and added a tour_steps method

### Added

Expand Down
45 changes: 32 additions & 13 deletions webviz_subsurface/plugins/_well_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ class WellCompletions(WebvizPluginABC):
* **`ensembles`:** Which ensembles in `shared_settings` to visualize.
* **`compdat_file`:** csvfile with compdat data per realization
* **`zone_layer_mapping_file`:** Optional lyr file specifying the zone->layer mapping \
* **`well_attributes_file`:** Optional json file with categorical well attributes \
* **`kh_unit`:** Optional (default empty)
* **`kh_decimal_places`: Optional (default 2)
* **`zone_layer_mapping_file`:** Lyr file specifying the zone->layer mapping \
* **`well_attributes_file`:** Json file with categorical well attributes \
* **`kh_unit`:** Will normally be mDm
* **`kh_decimal_places`:**
The zone layer mapping and well attribute files are intended to be exported from RMS and \
there will therefore be one file per realization.
---
The minimum requirement is to define `ensembles`.
Expand All @@ -49,25 +47,25 @@ class WellCompletions(WebvizPluginABC):
installed).
[Link to ecl2csv compdat documentation.](https://equinor.github.io/ecl2df/usage/compdat.html)
** Zone layer mapping **
**Zone layer mapping**
`zone_layer_mapping_file` file can be dumped to disk per realization by an internal \
RMS script as part of the FMU workflow. A sample python script will be made available.
The file needs to be on the lyr format used in Resinsight.
[Link to description of lyr format.]\
(https://resinsight.org/3d-main-window/formations/#formation-names-description-files-_lyr_)
The file needs to be on the lyr format used in ResInsight.
[Link to description of lyr format](https://resinsight.org/3d-main-window/formations/#formation-names-description-files-_lyr_).
If no file exists, layers will be used as zones.
** Well Attributes file **
**Well Attributes file**
`well_attributes_file` file is intended to be generated per realization by an internal \
RMS script as part of the FMU workflow. A sample script will be made available, but it is \
possible to manually set up the file and copy it to the correct folder on the scratch disk.\
The categorical well attributes are completely flexible.
The file should be a json file on the following format:
```json
{
"version" : "0.1",
"wells" : [
Expand Down Expand Up @@ -95,7 +93,8 @@ class WellCompletions(WebvizPluginABC):
},
]
}
"""
```
""" # pylint: disable=line-too-long

def __init__(
self,
Expand Down Expand Up @@ -146,9 +145,29 @@ def add_webvizstore(self) -> List[Tuple[Callable, list]]:
),
]

@property
def tour_steps(self) -> list:
return [
{
"id": self.uuid("layout"),
"content": "Dashboard vizualizing Eclipse well completion output.",
},
{"id": self.uuid("ensemble_dropdown"), "content": "Select ensemble."},
{
"id": self.uuid("well_completions_wrapper"),
"content": (
"Visualization of the well completions. "
"Time slider for selecting which time steps to display. "
"Different vizualisation and filtering alternatives are available "
"in the upper right corner."
),
},
]

@property
def layout(self) -> html.Div:
return html.Div(
id=self.uuid("layout"),
children=[
wcc.FlexBox(
children=[
Expand Down Expand Up @@ -179,7 +198,7 @@ def layout(self) -> html.Div:
html.Div(
id=self.uuid("well_completions_wrapper"),
),
]
],
)

def set_callbacks(self, app: dash.Dash) -> None:
Expand Down

0 comments on commit 0041864

Please sign in to comment.