File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
plugins/_volumetric_analysis/controllers Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
## [ UNRELEASED] - YYYY-MM-DD
10
10
11
+ ### Added
12
+ - [ #1297 ] ( https://github.com/equinor/webviz-subsurface/pull/1297 ) - Added mean for mc sensitivities in the tornadotable in ` VolumetricAnalysis ` .
13
+
14
+ ## [ 0.2.30] - 2024-06-10
15
+
11
16
### Added
12
17
- [ #1293 ] ( https://github.com/equinor/webviz-subsurface/pull/1293 ) - Added automatic calculation of ` STOIIP_TOTAL ` / ` GIIP_TOTAL ` in ` VolumetricAnalysis ` .
13
18
Original file line number Diff line number Diff line change 14
14
"pytest-xdist" ,
15
15
"pytest-forked" ,
16
16
"selenium>=3.141" ,
17
- "types-pkg-resources " ,
17
+ "types-setuptools " ,
18
18
"types-pyyaml" ,
19
19
]
20
20
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ def __init__(
25
25
self ._cut_sensitivities_by_ref ()
26
26
self ._sort_sensitivities_by_max ()
27
27
self ._real_df = self ._create_real_df (dframe )
28
+ self .mean_per_mc_sens = (
29
+ dframe [dframe ["SENSTYPE" ] == "mc" ].groupby ("SENSNAME" )["VALUE" ].mean ()
30
+ )
28
31
29
32
def _validate_input (self , dframe : pd .DataFrame ) -> None :
30
33
for col in self .REQUIRED_COLUMNS :
Original file line number Diff line number Diff line change @@ -359,12 +359,16 @@ def create_tornado_table(
359
359
use_si_format = use_si_format ,
360
360
precision = 4 if use_si_format else 3 ,
361
361
)
362
+ mean_col = "Mean (mc)"
362
363
table_data = tornado_table .as_plotly_table
363
364
for data in table_data :
364
- data ["Reference" ] = tornado_data .reference_average
365
+ data [mean_col ] = tornado_data .mean_per_mc_sens . get ( data [ "Sensitivity" ])
365
366
if group is not None :
366
367
data [subplots ] = group
367
368
368
369
columns = create_table_columns (columns = [subplots ]) if subplots is not None else []
369
370
columns .extend (tornado_table .columns )
371
+ columns .insert (
372
+ - 3 , create_table_columns (columns = [mean_col ], use_si_format = [mean_col ])[0 ]
373
+ )
370
374
return table_data , columns
You can’t perform that action at this time.
0 commit comments