webviz-subsurface 0.2.38__py3-none-any.whl → 0.2.40__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. webviz_subsurface/_components/tornado/_tornado_bar_chart.py +31 -11
  2. webviz_subsurface/_components/tornado/_tornado_data.py +20 -2
  3. webviz_subsurface/_figures/timeseries_figure.py +1 -1
  4. webviz_subsurface/_providers/ensemble_summary_provider/_provider_impl_arrow_lazy.py +3 -1
  5. webviz_subsurface/_providers/ensemble_summary_provider/_provider_impl_arrow_presampled.py +3 -1
  6. webviz_subsurface/_providers/ensemble_table_provider/ensemble_table_provider_factory.py +4 -0
  7. webviz_subsurface/_providers/ensemble_table_provider/ensemble_table_provider_impl_arrow.py +3 -1
  8. webviz_subsurface/_utils/dataframe_utils.py +1 -1
  9. webviz_subsurface/_utils/design_matrix.py +36 -0
  10. webviz_subsurface/_version.py +34 -0
  11. webviz_subsurface/plugins/_bhp_qc/views/_view_functions.py +5 -5
  12. webviz_subsurface/plugins/_co2_leakage/_utilities/co2volume.py +1 -1
  13. webviz_subsurface/plugins/_disk_usage.py +19 -8
  14. webviz_subsurface/plugins/_line_plotter_fmu/controllers/build_figure.py +4 -4
  15. webviz_subsurface/plugins/_map_viewer_fmu/map_viewer_fmu.py +1 -1
  16. webviz_subsurface/plugins/_parameter_analysis/_types.py +1 -0
  17. webviz_subsurface/plugins/_parameter_analysis/_utils/_parameters_model.py +15 -7
  18. webviz_subsurface/plugins/_parameter_analysis/_views/_parameter_distributions_view/_settings/_visualization_type.py +2 -1
  19. webviz_subsurface/plugins/_property_statistics/property_statistics.py +1 -1
  20. webviz_subsurface/plugins/_relative_permeability.py +6 -6
  21. webviz_subsurface/plugins/_reservoir_simulation_timeseries_regional.py +12 -12
  22. webviz_subsurface/plugins/_running_time_analysis_fmu.py +6 -1
  23. webviz_subsurface/plugins/_seismic_misfit.py +2 -3
  24. webviz_subsurface/plugins/_simulation_time_series/_views/_subplot_view/_utils/vector_statistics.py +4 -4
  25. webviz_subsurface/plugins/_structural_uncertainty/views/intersection_and_map.py +1 -1
  26. webviz_subsurface/plugins/_swatinit_qc/_business_logic.py +1 -1
  27. webviz_subsurface-0.2.40.dist-info/METADATA +822 -0
  28. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info}/RECORD +33 -83
  29. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info}/WHEEL +1 -1
  30. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info}/top_level.txt +0 -1
  31. tests/integration_tests/__init__.py +0 -0
  32. tests/integration_tests/test_parameter_filter.py +0 -28
  33. tests/integration_tests/test_surface_selector.py +0 -53
  34. tests/unit_tests/__init__.py +0 -0
  35. tests/unit_tests/abbreviations_tests/__init__.py +0 -0
  36. tests/unit_tests/abbreviations_tests/test_reservoir_simulation.py +0 -94
  37. tests/unit_tests/data_input/__init__.py +0 -0
  38. tests/unit_tests/data_input/test_calc_from_cumulatives.py +0 -178
  39. tests/unit_tests/data_input/test_image_processing.py +0 -11
  40. tests/unit_tests/mocks/__init__.py +0 -0
  41. tests/unit_tests/mocks/ensemble_summary_provider_dummy.py +0 -67
  42. tests/unit_tests/model_tests/__init__.py +0 -0
  43. tests/unit_tests/model_tests/test_ensemble_model.py +0 -176
  44. tests/unit_tests/model_tests/test_ensemble_set_model.py +0 -105
  45. tests/unit_tests/model_tests/test_gruptree_model.py +0 -89
  46. tests/unit_tests/model_tests/test_property_statistics_model.py +0 -42
  47. tests/unit_tests/model_tests/test_surface_set_model.py +0 -48
  48. tests/unit_tests/model_tests/test_well_attributes_model.py +0 -110
  49. tests/unit_tests/model_tests/test_well_set_model.py +0 -70
  50. tests/unit_tests/plugin_tests/__init__.py +0 -0
  51. tests/unit_tests/plugin_tests/test_grouptree.py +0 -175
  52. tests/unit_tests/plugin_tests/test_simulation_time_series/__init__.py +0 -0
  53. tests/unit_tests/plugin_tests/test_simulation_time_series/mocks/__init__.py +0 -0
  54. tests/unit_tests/plugin_tests/test_simulation_time_series/mocks/derived_vectors_accessor_ensemble_summary_provider_mock.py +0 -60
  55. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/__init__.py +0 -0
  56. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_create_vector_traces_utils.py +0 -530
  57. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_dataframe_utils.py +0 -119
  58. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_datetime_utils.py +0 -51
  59. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_delta_ensemble_utils.py +0 -222
  60. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_derived_delta_ensemble_vectors_accessor_impl.py +0 -319
  61. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_derived_ensemble_vectors_accessor_impl.py +0 -271
  62. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_derived_ensemble_vectors_accessor_utils.py +0 -78
  63. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_derived_vector_accessor.py +0 -57
  64. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_ensemble_summary_provider_set_utils.py +0 -213
  65. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_from_timeseries_cumulatives.py +0 -322
  66. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_history_vectors.py +0 -201
  67. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_trace_line_shape.py +0 -56
  68. tests/unit_tests/plugin_tests/test_simulation_time_series/test_utils/test_vector_statistics.py +0 -171
  69. tests/unit_tests/plugin_tests/test_tornado_data.py +0 -121
  70. tests/unit_tests/plugin_tests/test_well_completions.py +0 -158
  71. tests/unit_tests/provider_tests/__init__.py +0 -0
  72. tests/unit_tests/provider_tests/test_ensemble_summary_provider.py +0 -255
  73. tests/unit_tests/provider_tests/test_ensemble_summary_provider_impl_arrow_lazy.py +0 -388
  74. tests/unit_tests/provider_tests/test_ensemble_summary_provider_impl_arrow_presampled.py +0 -160
  75. tests/unit_tests/provider_tests/test_ensemble_summary_provider_resampling.py +0 -320
  76. tests/unit_tests/provider_tests/test_ensemble_table_provider.py +0 -190
  77. tests/unit_tests/utils_tests/__init__.py +0 -0
  78. tests/unit_tests/utils_tests/test_dataframe_utils.py +0 -281
  79. tests/unit_tests/utils_tests/test_ensemble_summary_provider_set/__init__.py +0 -0
  80. tests/unit_tests/utils_tests/test_ensemble_summary_provider_set/test_ensemble_summary_provider_set.py +0 -306
  81. tests/unit_tests/utils_tests/test_formatting.py +0 -10
  82. tests/unit_tests/utils_tests/test_simulation_timeseries.py +0 -51
  83. webviz_subsurface-0.2.38.dist-info/METADATA +0 -147
  84. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info}/entry_points.txt +0 -0
  85. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info/licenses}/LICENSE +0 -0
  86. {webviz_subsurface-0.2.38.dist-info → webviz_subsurface-0.2.40.dist-info/licenses}/LICENSE.chromedriver +0 -0
@@ -235,8 +235,7 @@ class SeismicMisfit(WebvizPluginABC):
235
235
 
236
236
  obsinfo = _compare_dfs_obs(self.dframeobs[attribute_name], self.ens_names)
237
237
  self.caseinfo = (
238
- f"{self.caseinfo}Attribute: {attribute_name}"
239
- f"\n{obsinfo}\n-----------\n"
238
+ f"{self.caseinfo}Attribute: {attribute_name}\n{obsinfo}\n-----------\n"
240
239
  )
241
240
 
242
241
  # get sorted list of unique region values
@@ -2441,7 +2440,7 @@ def update_obs_sim_map_plot(
2441
2440
  mode="markers",
2442
2441
  marker={
2443
2442
  "size": marker_size,
2444
- "color": ensdf_stat["coverage"],
2443
+ "color": ensdf_stat[coverage],
2445
2444
  "cmin": -1.0,
2446
2445
  "cmax": 2.0,
2447
2446
  "colorscale": SEISMIC_COVERAGE,
@@ -63,15 +63,15 @@ def create_vectors_statistics_df(vectors_df: pd.DataFrame) -> pd.DataFrame:
63
63
  statistics_df: pd.DataFrame = (
64
64
  vectors_df[["DATE"] + vector_names]
65
65
  .groupby(["DATE"])
66
- .agg([np.nanmean, np.nanmin, np.nanmax, p10, p90, p50])
66
+ .agg(["mean", "min", "max", p10, p90, p50])
67
67
  .reset_index(level=["DATE"], col_level=0)
68
68
  )
69
69
 
70
70
  # Rename columns to StatisticsOptions enum types for strongly typed format
71
71
  col_stat_label_map = {
72
- "nanmin": StatisticsOptions.MIN,
73
- "nanmax": StatisticsOptions.MAX,
74
- "nanmean": StatisticsOptions.MEAN,
72
+ "mean": StatisticsOptions.MEAN,
73
+ "min": StatisticsOptions.MIN,
74
+ "max": StatisticsOptions.MAX,
75
75
  "p10": StatisticsOptions.P10,
76
76
  "p90": StatisticsOptions.P90,
77
77
  "p50": StatisticsOptions.P50,
@@ -115,7 +115,7 @@ def map_layout(
115
115
  "disabled": False,
116
116
  "label": "Hillshading",
117
117
  },
118
- **props
118
+ **props,
119
119
  ),
120
120
  ),
121
121
  ],
@@ -208,7 +208,7 @@ class SwatinitQcDataModel:
208
208
  qc_vols[qc_cat.value] = 0.0
209
209
 
210
210
  # Overwrite dict values with correct figures:
211
- for qc_cat, qc_df in dframe.groupby("QC_FLAG"):
211
+ for qc_cat, qc_df in dframe.groupby("QC_FLAG", observed=False):
212
212
  qc_vols[qc_cat] = (
213
213
  (qc_df["SWAT"] - qc_df["SWATINIT"]) * qc_df["PORV"]
214
214
  ).sum()