resqpy 4.6.2__py3-none-any.whl → 4.6.3__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.6.2" # Set at build time
31
+ __version__ = "4.6.3" # Set at build time
32
32
  log = logging.getLogger(__name__)
33
33
  log.info(f"Imported resqpy version {__version__}")
@@ -40,7 +40,8 @@ def find_faces_to_represent_surface_regular_wrapper(
40
40
  progress_fn: Optional[Callable] = None,
41
41
  extra_metadata = None,
42
42
  return_properties: Optional[List[str]] = None,
43
- raw_bisector: bool = False) -> Tuple[int, bool, str, List[Union[UUID, str]]]:
43
+ raw_bisector: bool = False,
44
+ use_pack: bool = False) -> Tuple[int, bool, str, List[Union[UUID, str]]]:
44
45
  """Multiprocessing wrapper function of find_faces_to_represent_surface_regular_optimised.
45
46
 
46
47
  arguments:
@@ -81,6 +82,8 @@ def find_faces_to_represent_surface_regular_wrapper(
81
82
  the returned dictionary has the passed strings as keys and numpy arrays as values
82
83
  raw_bisector (bool, default False): if True and grid bisector is requested then it is left in a raw
83
84
  form without assessing which side is shallower (True values indicate same side as origin cell)
85
+ use_pack (bool, default False): if True, boolean properties will be stored in numpy packed format,
86
+ which will only be readable by resqpy based applications
84
87
 
85
88
  returns:
86
89
  Tuple containing:
@@ -351,13 +354,13 @@ def find_faces_to_represent_surface_regular_wrapper(
351
354
  raise ValueError(f'unrecognised property name {p_name}')
352
355
  if property_collection.number_of_imports() > 0:
353
356
  # log.debug('writing gcs property hdf5 data')
354
- property_collection.write_hdf5_for_imported_list()
357
+ property_collection.write_hdf5_for_imported_list(use_pack = use_pack)
355
358
  uuids_properties = property_collection.create_xml_for_imported_list_and_add_parts_to_model(
356
359
  find_local_property_kinds = True)
357
360
  uuid_list.extend(uuids_properties)
358
361
  if grid_pc is not None and grid_pc.number_of_imports() > 0:
359
362
  # log.debug('writing grid property (bisector) hdf5 data')
360
- grid_pc.write_hdf5_for_imported_list()
363
+ grid_pc.write_hdf5_for_imported_list(use_pack = use_pack)
361
364
  # log.debug('creating xml for grid property (bisector)')
362
365
  uuids_properties = grid_pc.create_xml_for_imported_list_and_add_parts_to_model(
363
366
  find_local_property_kinds = True)
resqpy/olio/xml_et.py CHANGED
@@ -301,7 +301,7 @@ def cut_extra_metadata(root):
301
301
  """Removes all the extra metadata children under root node."""
302
302
 
303
303
  for child in root:
304
- if child.tag == 'ExtraMetadata':
304
+ if match(child.tag, 'ExtraMetadata'):
305
305
  root.remove(child)
306
306
 
307
307
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: resqpy
3
- Version: 4.6.2
3
+ Version: 4.6.3
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=y-6wvHgin5dv6L1K3MO5g_RAFvAPwWK_usXDd2AJwXQ,555
1
+ resqpy/__init__.py,sha256=w79ci79ExqPxpse1ZraQ4yiyROKXKFxi9qf7NMaf5Ho,555
2
2
  resqpy/crs.py,sha256=iq0lO3aXzttmJBfuhUjS9IHlv8OV1wuByhFk0b4fvmI,24782
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
@@ -69,7 +69,7 @@ resqpy/multi_processing/__init__.py,sha256=ZRudHfN9aaZjxvat7t8BZr6mwMi9baiCNjczw
69
69
  resqpy/multi_processing/_multiprocessing.py,sha256=gGi6Eg5pJ9CAMNcDqcuBBJPr1HA9Akh0AQsFSGcnVuE,7017
70
70
  resqpy/multi_processing/wrappers/__init__.py,sha256=7vjuTWdHnp3rN9Ud8ljpDnt1NbBAyhA08lv-sQ9Kf3o,72
71
71
  resqpy/multi_processing/wrappers/blocked_well_mp.py,sha256=_2fEsSmJVQCnbQIjTHqmnNEugfhN1KvX-o4ZbvtChdI,5952
72
- resqpy/multi_processing/wrappers/grid_surface_mp.py,sha256=OsdSatEfMwLaPHr5EG3yEoPxom6z9mOElvXacHNnZ2I,20911
72
+ resqpy/multi_processing/wrappers/grid_surface_mp.py,sha256=bHncBa2I0OCuxsmFwiWrEUz-fXJlQrhOVbLELSqYIkA,21156
73
73
  resqpy/multi_processing/wrappers/mesh_mp.py,sha256=0VYoqtgBFfrlyYB6kkjbdrRQ5FKe6t5pHJO3wD9b8Fc,5793
74
74
  resqpy/olio/__init__.py,sha256=j2breqKYVufhw5k8qS2uZwB3tUKT7FhdZ23ninS75YA,84
75
75
  resqpy/olio/ab_toolbox.py,sha256=bZlAhOJVS0HvIYBW0Lg68re17N8eltoQhIUh0xuUyVc,2147
@@ -103,7 +103,7 @@ resqpy/olio/volume.py,sha256=F1pMnDoJ4ricy4dfdLuLuK1xkVgJckL9V06tUeyK6Wc,6185
103
103
  resqpy/olio/wellspec_keywords.py,sha256=wXOSADbmRm2TJQ9jq-H9AqI7l8y3g22Xkcmp4Vk4zYs,26220
104
104
  resqpy/olio/write_data.py,sha256=bIX7ilMkXWCMz_zQh-Gqk56sNzng4W5l4BahW2EV7Kw,5142
105
105
  resqpy/olio/write_hdf5.py,sha256=2kz3OIyasjJeKqJ8i8Mc9Y07qxmzx5Xpgy-ErM0jV4U,13980
106
- resqpy/olio/xml_et.py,sha256=8fb4rETE6k-QC_jIZq7cO7-PFwh4w2dFwxXprP5HY6o,24920
106
+ resqpy/olio/xml_et.py,sha256=pRKxUwqlEk9zJjAEb3AGSktE1OfdfPWP23A6Ihjb2AQ,24925
107
107
  resqpy/olio/xml_namespaces.py,sha256=PiQi2W7gRLxhMSEs26ahT4MlagYqsjMWJlNpIiZupoA,1824
108
108
  resqpy/olio/zmap_reader.py,sha256=YuhZjde_DZszVFsUKfu0XieKGg7ONXtJWskRV9Pw7VE,5709
109
109
  resqpy/organize/__init__.py,sha256=H1c7B4aRJf5peaGUTvGrCVug4Xr_JW38zeWL-LyCDtk,2206
@@ -191,7 +191,7 @@ resqpy/well/_wellbore_marker_frame.py,sha256=M0jmgAqWyXQ4z1_aH-tjFRiREu5jRq1TKDx
191
191
  resqpy/well/blocked_well_frame.py,sha256=Hd_gQ-IaDItNNh4XTeA-yxuF62BZ2l3Ty0nsk2hRtgo,22556
192
192
  resqpy/well/well_object_funcs.py,sha256=LdktgZ1X-ABQ2R-DArRxGK_Pf2OjrMr-bvH3dbXBFas,24743
193
193
  resqpy/well/well_utils.py,sha256=zwpYjT85nXAwWBhYB1Pygu2SgouZ-44k6hEOnpoMfBI,5969
194
- resqpy-4.6.2.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
195
- resqpy-4.6.2.dist-info/METADATA,sha256=CoffcR23C4QBvlTIDgkaRqMTeVJpyWuv_0_YUn6OvT4,4156
196
- resqpy-4.6.2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
197
- resqpy-4.6.2.dist-info/RECORD,,
194
+ resqpy-4.6.3.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
195
+ resqpy-4.6.3.dist-info/METADATA,sha256=_1cRfh4oG8RvrgGzsFiBvatHNJOLAC6Smr-iF8q_bKI,4156
196
+ resqpy-4.6.3.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
197
+ resqpy-4.6.3.dist-info/RECORD,,
File without changes