resqpy 4.13.3__py3-none-any.whl → 4.13.4__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.
resqpy/__init__.py CHANGED
@@ -28,6 +28,6 @@
28
28
 
29
29
  import logging
30
30
 
31
- __version__ = "4.13.3" # Set at build time
31
+ __version__ = "4.13.4" # Set at build time
32
32
  log = logging.getLogger(__name__)
33
33
  log.info(f"Imported resqpy version {__version__}")
@@ -85,6 +85,7 @@ class TriMesh(rqs.Mesh):
85
85
  o_a[2] = 0.0
86
86
  assert not np.any(np.isnan(o_a))
87
87
  xyz += np.expand_dims(np.expand_dims(o_a, axis = 0), axis = 0)
88
+ o_a[2] = 0.0 # origin z included in explicit values and moved to zero
88
89
  super().__init__(parent_model,
89
90
  mesh_flavour = 'explicit',
90
91
  xyz_values = xyz,
@@ -111,7 +112,8 @@ class TriMesh(rqs.Mesh):
111
112
  assert t_side is not None, 'triangle side length missing in TriMesh extra metadata'
112
113
  self.t_side = float(t_side)
113
114
  self.z_uom = self.extra_metadata.get('z uom')
114
- origin = self.full_array_ref()[0, 0]
115
+ origin = np.zeros(3, dtype = float)
116
+ origin[:2] = self.full_array_ref()[0, 0, :2]
115
117
  if np.all(np.isclose(origin, 0.0)):
116
118
  self.origin = None
117
119
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: resqpy
3
- Version: 4.13.3
3
+ Version: 4.13.4
4
4
  Summary: Python API for working with RESQML models
5
5
  Home-page: https://github.com/bp/resqpy
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- resqpy/__init__.py,sha256=GRQwmZJynGjYpfS2jlLwWQLs5UDxrUZvT1dbp93aE5E,556
1
+ resqpy/__init__.py,sha256=DdnXn4w1fF0qhyNljSAEitc_d6u9652-j-alaDmBxMk,556
2
2
  resqpy/crs.py,sha256=R7DfcTP5xGv5pu9Y8RHA2WVM9DjBCSVMoHcz4RmQ7Yw,27646
3
3
  resqpy/derived_model/__init__.py,sha256=NFvMSOKI3cxmH7lAbddV43JjoUj-r2G7ExEfOqinD1I,1982
4
4
  resqpy/derived_model/_add_edges_per_column_property_array.py,sha256=cpW3gwp6MSYIrtvFmCjoJXcyUsgGuCDbgmwlJCJebUs,6410
@@ -163,7 +163,7 @@ resqpy/surface/_combined_surface.py,sha256=8TnNbSywjej6tW_vRr5zoVgBbvnadCaqWk6Wy
163
163
  resqpy/surface/_mesh.py,sha256=bhHfIjRg9xWhv1aWW9oDhTK6LlwS5rZBST1ONJuG8pg,42192
164
164
  resqpy/surface/_pointset.py,sha256=niTkBik9hAvqrY8340K1TRG7mg4FMQbbp12WZiiXPMs,27416
165
165
  resqpy/surface/_surface.py,sha256=yOqB9c-Rwh7Micj3vKb0M5SC77Tg9B1zokwPFtO7S9c,65671
166
- resqpy/surface/_tri_mesh.py,sha256=hIaaBKpdJJ0x12LzT04y2j_uxZpvJ_mZdHoJ_JTWFdY,24546
166
+ resqpy/surface/_tri_mesh.py,sha256=s5DrouITr40cdQme_opcmZYkTOEH_1p2PS-8B73ZJLc,24689
167
167
  resqpy/surface/_triangulated_patch.py,sha256=cmZVssA5Yde0JzgawkahlZFNFcmgxJS59HxirOu7nQ4,25907
168
168
  resqpy/time_series/__init__.py,sha256=jiB3HJUWe47OOJTVmRJ4Gh5vm-XdMaMXmD52kAGr2zY,1074
169
169
  resqpy/time_series/_any_time_series.py,sha256=PPBm_gjliZTFJszrREH0Glb5gVRWbS3NvZiZlITJr98,8595
@@ -192,7 +192,7 @@ resqpy/well/_wellbore_marker_frame.py,sha256=xvYH2_2Ie3a18LReFymbUrZboOx7Rhv5DOD
192
192
  resqpy/well/blocked_well_frame.py,sha256=Lg7TgynfPv9WkklXTLt9VN6uBXWUqX1LI-Xmv_FBqYk,22555
193
193
  resqpy/well/well_object_funcs.py,sha256=LYTcC07ezlBxClfrug_B4iXXZUkXDPgsVufNzp361Wo,24703
194
194
  resqpy/well/well_utils.py,sha256=zwpYjT85nXAwWBhYB1Pygu2SgouZ-44k6hEOnpoMfBI,5969
195
- resqpy-4.13.3.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
196
- resqpy-4.13.3.dist-info/METADATA,sha256=LDlWV9zMuXTa_Ixmd-ZBpiAeG2DnTD58ogIYLYCZHQw,4028
197
- resqpy-4.13.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
198
- resqpy-4.13.3.dist-info/RECORD,,
195
+ resqpy-4.13.4.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
196
+ resqpy-4.13.4.dist-info/METADATA,sha256=lBGuEUkoQlIF-isKhyNlpor2_7wwefX6fcv6kOUZK4o,4028
197
+ resqpy-4.13.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
198
+ resqpy-4.13.4.dist-info/RECORD,,