webviz-subsurface 0.2.31__py3-none-any.whl → 0.2.32__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={
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webviz-subsurface
3
- Version: 0.2.31
3
+ Version: 0.2.32
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"
@@ -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
@@ -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.32.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
618
+ webviz_subsurface-0.2.32.dist-info/LICENSE.chromedriver,sha256=H5UWVvf6Y7Ul6i35mriz7071dWR01cR9G-5ypnZHnpM,326542
619
+ webviz_subsurface-0.2.32.dist-info/METADATA,sha256=P_R0_nYc_CokNv1xapU7ziK2KVMby6dSKdlFtfkPV0Y,6052
620
+ webviz_subsurface-0.2.32.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
621
+ webviz_subsurface-0.2.32.dist-info/entry_points.txt,sha256=aprJRZQ2dW0An59soobTCaWzw6nEtiZBGncBhWA_C5Y,4129
622
+ webviz_subsurface-0.2.32.dist-info/top_level.txt,sha256=NobeVsNfPINQgUSc9hlW3aqYHO5A0SNlhacg-2YDcf4,24
623
+ webviz_subsurface-0.2.32.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5