webviz-subsurface 0.2.31__py3-none-any.whl → 0.2.33__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.
@@ -3,16 +3,15 @@ import io
3
3
  import json
4
4
  import logging
5
5
  import math
6
+ import tempfile
6
7
  from dataclasses import asdict, dataclass
7
8
  from typing import Any, List, Optional, Tuple, Union
8
9
  from urllib.parse import quote
9
- from uuid import uuid4
10
10
 
11
11
  import flask
12
12
  import flask_caching
13
13
  import xtgeo
14
14
  from dash import Dash
15
- from webviz_config.webviz_instance_info import WEBVIZ_INSTANCE_INFO
16
15
 
17
16
  from webviz_subsurface._utils.perf_timer import PerfTimer
18
17
 
@@ -46,10 +45,7 @@ class SurfaceImageMeta:
46
45
 
47
46
  class SurfaceImageServer:
48
47
  def __init__(self, app: Dash) -> None:
49
- cache_dir = (
50
- WEBVIZ_INSTANCE_INFO.storage_folder
51
- / f"SurfaceImageServer_filecache_{uuid4()}"
52
- )
48
+ cache_dir = tempfile.mkdtemp()
53
49
  LOGGER.debug(f"Setting up file cache in: {cache_dir}")
54
50
  self._image_cache = flask_caching.Cache(
55
51
  config={
@@ -116,6 +116,9 @@ class RftPlotterDataModel:
116
116
  self.ertdatadf_inactive = filter_frame(self.ertdatadf, {"ACTIVE": 0})
117
117
  self.ertdatadf = filter_frame(self.ertdatadf, {"ACTIVE": 1})
118
118
 
119
+ if self.ertdatadf.empty:
120
+ raise ValueError("There are no active RFT points in the input data.")
121
+
119
122
  self.ertdatadf["STDDEV"] = self.ertdatadf.groupby(
120
123
  ["WELL", "DATE", "ZONE", "ENSEMBLE", "TVD"]
121
124
  )["SIMULATED"].transform("std")
@@ -17,7 +17,10 @@ def update_crossplot(
17
17
 
18
18
  for _ens, ensdf in df.groupby("ENSEMBLE"):
19
19
  dframe = (
20
- ensdf.groupby(["WELL", "DATE", "ZONE", "TVD"]).mean().reset_index().copy()
20
+ ensdf.groupby(["WELL", "DATE", "ZONE", "TVD"])
21
+ .mean(numeric_only=True)
22
+ .reset_index()
23
+ .copy()
21
24
  )
22
25
  trace = {
23
26
  "x": dframe["OBSERVED"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webviz-subsurface
3
- Version: 0.2.31
3
+ Version: 0.2.33
4
4
  Summary: Webviz config plugins for subsurface data
5
5
  Home-page: https://github.com/equinor/webviz-subsurface
6
6
  Author: R&T Equinor
@@ -50,7 +50,7 @@ Requires-Dist: bandit; extra == "tests"
50
50
  Requires-Dist: black<24,>=22.1; extra == "tests"
51
51
  Requires-Dist: dash[testing]; extra == "tests"
52
52
  Requires-Dist: isort; extra == "tests"
53
- Requires-Dist: mypy; extra == "tests"
53
+ Requires-Dist: mypy<1.12; extra == "tests"
54
54
  Requires-Dist: pylint<3.2.0; extra == "tests"
55
55
  Requires-Dist: pytest-mock; extra == "tests"
56
56
  Requires-Dist: pytest-xdist; extra == "tests"
@@ -59,6 +59,16 @@ Requires-Dist: selenium>=3.141; extra == "tests"
59
59
  Requires-Dist: types-setuptools; extra == "tests"
60
60
  Requires-Dist: types-pyyaml; extra == "tests"
61
61
 
62
+ <h4>This package will be deprecated - we move instead all collaboration focus to the reusable React and Dash components in:
63
+ <ul>
64
+ <li>https://github.com/equinor/webviz-subsurface-components</li>
65
+ <li>https://github.com/equinor/webviz-core-components</li>
66
+ </ul>
67
+ and the FMU use case to https://github.com/equinor/webviz
68
+ </h2>
69
+
70
+ <hr/>
71
+
62
72
  [![PyPI version](https://badge.fury.io/py/webviz-subsurface.svg)](https://badge.fury.io/py/webviz-subsurface)
63
73
  [![Build Status](https://github.com/equinor/webviz-subsurface/workflows/webviz-subsurface/badge.svg)](https://github.com/equinor/webviz-subsurface/actions?query=branch%3Amaster)
64
74
  [![Python 3.8 | 3.9 | 3.10 | 3.11 | 3.12](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12-blue.svg)](https://www.python.org/)
@@ -183,7 +183,7 @@ webviz_subsurface/_providers/ensemble_surface_provider/dev_surface_server_lazy.p
183
183
  webviz_subsurface/_providers/ensemble_surface_provider/ensemble_surface_provider.py,sha256=yz48Dk5hMcHAOpsbWpRwQxvw-xV6Hn-nDAEBPKxQtWY,2721
184
184
  webviz_subsurface/_providers/ensemble_surface_provider/ensemble_surface_provider_factory.py,sha256=b_fJZkPTaOnHmZYjQHidKSysueOj7lDAxpe7YDSFs1k,4738
185
185
  webviz_subsurface/_providers/ensemble_surface_provider/surface_array_server.py,sha256=BdOJW8eVCbA5qeiQmSlRHviC5SGA75iQYliA5sXzLCc,8950
186
- webviz_subsurface/_providers/ensemble_surface_provider/surface_image_server.py,sha256=UryTkY8ze-dAIxbFkepqNaoOW-p5UxuCoW-vQp5DgV4,9092
186
+ webviz_subsurface/_providers/ensemble_surface_provider/surface_image_server.py,sha256=6N0ZUkgYX8ln6Ryaoms75y7AlAF-aS4N8Va6Gsm8SDE,8920
187
187
  webviz_subsurface/_providers/ensemble_table_provider/__init__.py,sha256=YxM91G6ilyHgXFb0jX4ODxnf_CkCtN70SZxWIeZArB4,228
188
188
  webviz_subsurface/_providers/ensemble_table_provider/_field_metadata.py,sha256=vd6EDP00LPIQHsSwXLNaxkUl_Dw8objE3krlGCmT84w,543
189
189
  webviz_subsurface/_providers/ensemble_table_provider/_table_import.py,sha256=Y6_3KVgkXdBvuhC-LEIIHaatXxyC2LeJ2d6sQYIl8zE,5604
@@ -402,7 +402,7 @@ webviz_subsurface/plugins/_rft_plotter/_reusable_view_element.py,sha256=gNJ2zEaf
402
402
  webviz_subsurface/plugins/_rft_plotter/_types.py,sha256=jDFnX3dZ_bRY_lJmwK_L8rLixnLFc5IUbt4QgphaDBw,378
403
403
  webviz_subsurface/plugins/_rft_plotter/_utils/__init__.py,sha256=--tdLFTsZONWf9o-yD2zQ9zvDNPpF1oqlmMU6xUsXhU,169
404
404
  webviz_subsurface/plugins/_rft_plotter/_utils/_formation_figure.py,sha256=paIevOdFZIXMakkRgtxw7VC5gGObz_lvBHZ91yIzoMA,12919
405
- webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py,sha256=zyo4kLQFi4ymF-5v9VXhkta8gNI7JanL5vsONF5JuEM,11867
405
+ webviz_subsurface/plugins/_rft_plotter/_utils/_rft_plotter_data_model.py,sha256=uNZ1jRalYiOZlEoqEiv92_vR2e4mvnYrQd7fxwp3Wlg,11983
406
406
  webviz_subsurface/plugins/_rft_plotter/_views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
407
407
  webviz_subsurface/plugins/_rft_plotter/_views/_map_view/__init__.py,sha256=T1S-QMlOla_wMdziFt2obYssR_pLN-Ov0FXvgcHHTqw,27
408
408
  webviz_subsurface/plugins/_rft_plotter/_views/_map_view/_view.py,sha256=HCECeZ-DRb2SOxjYdBtjkHnlaexxoA-Z3JsZK0453Tw,7897
@@ -433,7 +433,7 @@ webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_settings/_ensemb
433
433
  webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_settings/_plot_type.py,sha256=ift_VyRREyLdo7mlo-n_AQEWjeCklwRtWAH6H3dKw0w,1055
434
434
  webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_settings/_size_color_settings.py,sha256=PAbWJTa75XVkIwdLj4xQC5kJ-e97A1FjG52UIwJUesE,1766
435
435
  webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_utils/__init__.py,sha256=mgwXq6owWnfGFG03Bn7b6U83bpjJ7UL-bjYIwz61qQU,96
436
- webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_utils/_crossplot_figure.py,sha256=JopDSsRvH7qQSNxElTOol38RoG2v-EWkN0JVkGIP6MY,3872
436
+ webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_utils/_crossplot_figure.py,sha256=lnaHQNjopBIT5OmfblKBwJEVDMQ6GgSOT7zh7ol1mEE,3928
437
437
  webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_utils/_errorplot_figure.py,sha256=tsEP6Q_nLnpWa7Ml4tlYwJc44zFsLtbPWg46ovL67vk,1229
438
438
  webviz_subsurface/plugins/_simulation_time_series/__init__.py,sha256=iIeZTa6kyhVdqFVJSb0_m9ZpPsv8xATZiOhl30oYXX0,42
439
439
  webviz_subsurface/plugins/_simulation_time_series/_plugin.py,sha256=XuSy5bvNaaXR_ex09I73whwam4OlkXxZyG5DxOoVRww,22235
@@ -614,10 +614,10 @@ webviz_subsurface/plugins/_well_log_viewer/controllers/_well_controller.py,sha25
614
614
  webviz_subsurface/plugins/_well_log_viewer/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
615
615
  webviz_subsurface/plugins/_well_log_viewer/utils/default_color_tables.py,sha256=0UgrvygPGEAuC15vn73NCXJUQLt9Dpn5QZqqq1IJkfw,4872
616
616
  webviz_subsurface/plugins/_well_log_viewer/utils/xtgeo_well_log_to_json.py,sha256=T44-vFwvvjyo376yoL1QWDc98exG8N1cLTEzrGp-I7A,1608
617
- webviz_subsurface-0.2.31.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
618
- webviz_subsurface-0.2.31.dist-info/LICENSE.chromedriver,sha256=H5UWVvf6Y7Ul6i35mriz7071dWR01cR9G-5ypnZHnpM,326542
619
- webviz_subsurface-0.2.31.dist-info/METADATA,sha256=86dS7ywUZCRpjzP4OuWEB1SxsIzpryS7O-O08LmIjvo,6047
620
- webviz_subsurface-0.2.31.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
621
- webviz_subsurface-0.2.31.dist-info/entry_points.txt,sha256=aprJRZQ2dW0An59soobTCaWzw6nEtiZBGncBhWA_C5Y,4129
622
- webviz_subsurface-0.2.31.dist-info/top_level.txt,sha256=NobeVsNfPINQgUSc9hlW3aqYHO5A0SNlhacg-2YDcf4,24
623
- webviz_subsurface-0.2.31.dist-info/RECORD,,
617
+ webviz_subsurface-0.2.33.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
618
+ webviz_subsurface-0.2.33.dist-info/LICENSE.chromedriver,sha256=H5UWVvf6Y7Ul6i35mriz7071dWR01cR9G-5ypnZHnpM,326542
619
+ webviz_subsurface-0.2.33.dist-info/METADATA,sha256=SwYE9yRPI-PkzaMUTAZUWvhpUquv9WvVSyHgFHN5KO0,6387
620
+ webviz_subsurface-0.2.33.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
621
+ webviz_subsurface-0.2.33.dist-info/entry_points.txt,sha256=aprJRZQ2dW0An59soobTCaWzw6nEtiZBGncBhWA_C5Y,4129
622
+ webviz_subsurface-0.2.33.dist-info/top_level.txt,sha256=NobeVsNfPINQgUSc9hlW3aqYHO5A0SNlhacg-2YDcf4,24
623
+ webviz_subsurface-0.2.33.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5