-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Statistical options in
WellAnalysis
(#1199)
* Added error bars in well overview bar chart * Added water and gas injection as responses * Implemented statistics options * New settings group statistical options * More work on statistics options * Deactivated error bars if stat option p10_minus_p90 is selected * Changelog entry --------- Co-authored-by: Øyvind Lind-Johansen <[email protected]>
- Loading branch information
Showing
9 changed files
with
196 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...rface/plugins/_well_analysis/_views/_well_overview_view/_settings/_statistical_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from typing import List | ||
|
||
import webviz_core_components as wcc | ||
from dash import html | ||
from dash.development.base_component import Component | ||
from webviz_config.utils import StrEnum | ||
from webviz_config.webviz_plugin_subclasses import SettingsGroupABC | ||
|
||
from ...._types import StatType | ||
|
||
|
||
class WellOverviewStatisticalOptions(SettingsGroupABC): | ||
class Ids(StrEnum): | ||
STATISTICS = "statistics" | ||
|
||
def __init__(self) -> None: | ||
super().__init__("Statistics") | ||
|
||
def layout(self) -> List[Component]: | ||
return [ | ||
html.Div( | ||
children=[ | ||
wcc.RadioItems( | ||
id=self.register_component_unique_id(self.Ids.STATISTICS), | ||
options=[ | ||
{"label": "Mean", "value": StatType.MEAN}, | ||
{"label": "P10 (high)", "value": StatType.P10}, | ||
{ | ||
"label": "P50 (median)", | ||
"value": StatType.P50, | ||
}, | ||
{"label": "P90 (low)", "value": StatType.P90}, | ||
{"label": "Maximum", "value": StatType.MAX}, | ||
{"label": "Minimum", "value": StatType.MIN}, | ||
{"label": "P10 - P90", "value": StatType.P10_MINUS_P90}, | ||
], | ||
value=StatType.MEAN, | ||
) | ||
], | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.