resqpy 4.13.2__py3-none-any.whl → 4.13.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
resqpy/__init__.py CHANGED
@@ -28,6 +28,6 @@
28
28
 
29
29
  import logging
30
30
 
31
- __version__ = "4.13.2" # 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__}")
resqpy/lines/_polyline.py CHANGED
@@ -427,6 +427,10 @@ class Polyline(rql_c._BasePolyline):
427
427
  """
428
428
 
429
429
  assert 0.0 <= fraction <= 1.0
430
+ if maths.isclose(fraction, 0.0):
431
+ return self.coordinates[0]
432
+ if maths.isclose(fraction, 1.0):
433
+ return (self.coordinates[0] if self.isclosed else self.coordinates[-1])
430
434
  target = fraction * self.full_length(in_xy = in_xy)
431
435
  seg_index = 0
432
436
  while True:
@@ -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.2
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=F-5c7gVJzOu0vL4r7pPckGQmdqiAXMqSQcilFRvoJao,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
@@ -55,7 +55,7 @@ resqpy/grid_surface/_trajectory_intersects.py,sha256=Och9cZYU9Y7ofovhPzsLyIblRUl
55
55
  resqpy/grid_surface/grid_surface_cuda.py,sha256=RVhrhzuQOIl3QlUocUeHdmmv6M_HNXe5UH3sDTZRIQI,40016
56
56
  resqpy/lines/__init__.py,sha256=zE7j-BeqkOowj_tsZWd2X_fT-RpbuIh17zfEyj2N0oY,539
57
57
  resqpy/lines/_common.py,sha256=nlgVgZ8utHXuHDyzuP0IpkUJViDNmmy7EBqwLzxSI2M,11960
58
- resqpy/lines/_polyline.py,sha256=OjxSKi9vPqFI4GjVkkA9ZDYewu-gu59bF4NNqJ0hUVo,42454
58
+ resqpy/lines/_polyline.py,sha256=37E0pGDDaBuqtmvXq2zHyYO97uUIUWljZoSWNibQemc,42659
59
59
  resqpy/lines/_polyline_set.py,sha256=3K3z_G9l_3mfjLdCL-YVscyj1FA6DHh1uj9rXPtWFOY,27986
60
60
  resqpy/model/__init__.py,sha256=hbxO-IpCOH_82TZqj6e1FjrWxO0tZu2gj2HCN9x-Svw,378
61
61
  resqpy/model/_catalogue.py,sha256=ZSzLaZWBLgrna6DPPfEQK72hmuRieLrWr5jhj51YIsI,30205
@@ -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.2.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
196
- resqpy-4.13.2.dist-info/METADATA,sha256=1MD5GFukfoTNcIFopFhn7GBmVHb1YTX448NZ0tZsIdM,4028
197
- resqpy-4.13.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
198
- resqpy-4.13.2.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,,