resqpy 5.1.8__py3-none-any.whl → 5.1.9__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 +1 -1
- resqpy/surface/_tri_mesh.py +22 -0
- {resqpy-5.1.8.dist-info → resqpy-5.1.9.dist-info}/METADATA +1 -1
- {resqpy-5.1.8.dist-info → resqpy-5.1.9.dist-info}/RECORD +6 -6
- {resqpy-5.1.8.dist-info → resqpy-5.1.9.dist-info}/LICENSE +0 -0
- {resqpy-5.1.8.dist-info → resqpy-5.1.9.dist-info}/WHEEL +0 -0
    
        resqpy/__init__.py
    CHANGED
    
    
    
        resqpy/surface/_tri_mesh.py
    CHANGED
    
    | @@ -9,6 +9,7 @@ import numpy as np | |
| 9 9 |  | 
| 10 10 | 
             
            import resqpy.crs as rqc
         | 
| 11 11 | 
             
            import resqpy.surface as rqs
         | 
| 12 | 
            +
            import resqpy.weights_and_measures as wam
         | 
| 12 13 | 
             
            import resqpy.olio.vector_utilities as vec
         | 
| 13 14 | 
             
            import resqpy.olio.uuid as bu
         | 
| 14 15 |  | 
| @@ -568,6 +569,27 @@ class TriMesh(rqs.Mesh): | |
| 568 569 |  | 
| 569 570 | 
             
                    return p
         | 
| 570 571 |  | 
| 572 | 
            +
                def area(self, required_uom = None):
         | 
| 573 | 
            +
                    """Returns approximate area of tri mesh based on proportion of non-NaN z values.
         | 
| 574 | 
            +
             | 
| 575 | 
            +
                    arguments:
         | 
| 576 | 
            +
                        - required_uom (str, optional): RESQML area unit of measure string for result
         | 
| 577 | 
            +
             | 
| 578 | 
            +
                    returns:
         | 
| 579 | 
            +
                        - float being the approximate area of the tri mesh in its xy projection
         | 
| 580 | 
            +
             | 
| 581 | 
            +
                    note:
         | 
| 582 | 
            +
                        - default uom is crs xy_units squared
         | 
| 583 | 
            +
                    """
         | 
| 584 | 
            +
                    a = 1.0 - (float(np.count_nonzero(np.isnan(self.full_array_ref()[..., 2]))) / float(self.nj * self.ni))
         | 
| 585 | 
            +
                    a *= float((self.nj - 1) * (self.ni - 1)) * self.t_side * self.t_side * root_3_by_2
         | 
| 586 | 
            +
                    if required_uom is not None:
         | 
| 587 | 
            +
                        crs = rqc.Crs(self.model, uuid = self.crs_uuid)
         | 
| 588 | 
            +
                        if required_uom != crs.xy_units + '2':
         | 
| 589 | 
            +
                            uom = ('ft' if crs.xy_units.startswith('ft') else crs.xy_units) + '2'
         | 
| 590 | 
            +
                            a = wam.convert(a, uom, required_uom)
         | 
| 591 | 
            +
                    return a
         | 
| 592 | 
            +
             | 
| 571 593 | 
             
                def is_compatible_with(self, other_tri_mesh):
         | 
| 572 594 | 
             
                    """Returns True if this tri mesh has the same xy points as the other."""
         | 
| 573 595 |  | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            resqpy/__init__.py,sha256 | 
| 1 | 
            +
            resqpy/__init__.py,sha256=vrb9QCmfIRLPlxx_91xKeBskRVGSdjNykQFQY7i1DGs,555
         | 
| 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=yEFldNWT2g8MCGcU4mTeWzDrLHHGLLGLIle1gAjJ_lg,42352
         | 
| 164 164 | 
             
            resqpy/surface/_pointset.py,sha256=niTkBik9hAvqrY8340K1TRG7mg4FMQbbp12WZiiXPMs,27416
         | 
| 165 165 | 
             
            resqpy/surface/_surface.py,sha256=FO8bvL1HoSJw0TGHC4FTTIgOzAEElx4GqaYlEh_NhwI,94079
         | 
| 166 | 
            -
            resqpy/surface/_tri_mesh.py,sha256= | 
| 166 | 
            +
            resqpy/surface/_tri_mesh.py,sha256=vk4rpCKpRltLPOD1gsbEzW7xX4bacIl7IT6gafivt6c,27717
         | 
| 167 167 | 
             
            resqpy/surface/_tri_mesh_stencil.py,sha256=eXt_HIKvsXGsjQ7nm_NbozR6ProQxPbeO52r79j80ig,16087
         | 
| 168 168 | 
             
            resqpy/surface/_triangulated_patch.py,sha256=FKn_Irzp4aLFkkN_-tx1MLMKjEAiOLE8636sOA481TQ,26802
         | 
| 169 169 | 
             
            resqpy/time_series/__init__.py,sha256=jiB3HJUWe47OOJTVmRJ4Gh5vm-XdMaMXmD52kAGr2zY,1074
         | 
| @@ -193,7 +193,7 @@ resqpy/well/_wellbore_marker_frame.py,sha256=xvYH2_2Ie3a18LReFymbUrZboOx7Rhv5DOD | |
| 193 193 | 
             
            resqpy/well/blocked_well_frame.py,sha256=Rx8jwkCjchseDZaTttPkA1-f6l7W6vRGrxWtDHlEPx8,22560
         | 
| 194 194 | 
             
            resqpy/well/well_object_funcs.py,sha256=1O4EVPuTn-kN3uT_V4TbSwehnMUMY0TX36XOUgasTcc,24689
         | 
| 195 195 | 
             
            resqpy/well/well_utils.py,sha256=-g_pg2v5XD9g4SQz9sk7KK-x2xEQZHzWehCQqiEGo6M,7627
         | 
| 196 | 
            -
            resqpy-5.1. | 
| 197 | 
            -
            resqpy-5.1. | 
| 198 | 
            -
            resqpy-5.1. | 
| 199 | 
            -
            resqpy-5.1. | 
| 196 | 
            +
            resqpy-5.1.9.dist-info/LICENSE,sha256=2duHPIkKQyESMdQ4hKjL8CYEsYRHXaYxt0YQkzsUYE4,1059
         | 
| 197 | 
            +
            resqpy-5.1.9.dist-info/METADATA,sha256=nZu5hw5sgWE_EEjC6wrxTqYABwsz5Hnq1pLihKN26YI,3986
         | 
| 198 | 
            +
            resqpy-5.1.9.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
         | 
| 199 | 
            +
            resqpy-5.1.9.dist-info/RECORD,,
         | 
| 
            File without changes
         | 
| 
            File without changes
         |