resqpy 5.2.0__tar.gz → 5.2.2__tar.gz
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-5.2.0 → resqpy-5.2.2}/PKG-INFO +2 -2
- {resqpy-5.2.0 → resqpy-5.2.2}/pyproject.toml +17 -10
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/__init__.py +1 -1
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_grid.py +1 -1
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_regular_grid.py +4 -3
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/_find_faces.py +2 -2
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/lines/_common.py +3 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/lines/_polyline.py +18 -4
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/lines/_polyline_set.py +26 -3
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/wrappers/grid_surface_mp.py +2 -2
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/wrappers/mesh_mp.py +2 -2
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/relperm.py +5 -4
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/wellspec_keywords.py +8 -7
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/_collection_get_attributes.py +35 -13
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/property_collection.py +3 -3
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_import_nexus.py +1 -1
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_import_vdb_all_grids.py +1 -1
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_surface.py +4 -4
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_blocked_well.py +3 -3
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_deviation_survey.py +1 -1
- {resqpy-5.2.0 → resqpy-5.2.2}/LICENSE +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/README.md +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/crs.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_edges_per_column_property_array.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_faults.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_one_blocked_well_property.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_one_grid_property_array.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_single_cell_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_wells_from_ascii_file.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_add_zone_by_layer_property.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_coarsened_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_common.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_copy_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_drape_to_surface.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_extract_box.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_extract_box_for_well.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_fault_throw_scaling.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_gather_ensemble.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_interpolated_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_local_depth_adjustment.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_refined_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_tilted_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_unsplit_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_zonal_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/derived_model/_zone_layer_ranges_from_array.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/fault/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/fault/_gcs_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/fault/_grid_connection_set.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_cell_properties.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_connection_sets.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_create_grid_xml.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_defined_geometry.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_extract_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_face_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_faults.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_grid_types.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_intervals_info.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_pillars.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_pixel_maps.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_points_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_transmissibility.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_write_hdf5_from_caches.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_write_nexus_corp.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid/_xyz.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/_blocked_well_populate.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/_grid_skin.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/_grid_surface.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/_trajectory_intersects.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/grid_surface/grid_surface_cuda.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/lines/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_catalogue.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_context.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_forestry.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_grids.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_hdf5.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_model.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/model/_xml.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/_multiprocessing.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/wrappers/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/multi_processing/wrappers/blocked_well_mp.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/ab_toolbox.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/base.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/box_utilities.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/class_dict.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/consolidation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/data/build.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/data/properties.json +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/dataframe.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/exceptions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/factors.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/fine_coarse.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/grid_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/intersection.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/keyword_files.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/load_data.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/numba_compat.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/point_inclusion.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/random_seed.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/read_nexus_fault.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/simple_lines.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/time.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/trademark.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/transmission.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/triangulation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/uuid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/vdb.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/vector_utilities.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/volume.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/write_data.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/write_hdf5.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/xml_et.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/xml_namespaces.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/olio/zmap_reader.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/_utils.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/boundary_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/boundary_feature_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/earth_model_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/fault_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/fluid_boundary_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/frontier_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/generic_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/genetic_boundary_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/geobody_boundary_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/geobody_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/geobody_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/geologic_unit_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/horizon_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/organization_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/rock_fluid_unit_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/structural_organization_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/tectonic_boundary_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/wellbore_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/organize/wellbore_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/_collection_add_part.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/_collection_create_xml.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/_collection_support.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/_property.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/attribute_property_set.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/grid_property_collection.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/property_common.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/property_kind.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/string_lookup.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/well_interval_property.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/well_interval_property_collection.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/well_log.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/property/well_log_collection.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_add_ab_properties.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_add_surfaces.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_grid_from_cp.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/rq_import/_import_vdb_ensemble.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_binary_contact_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_geologic_unit_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_strata_common.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_stratigraphic_column.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_stratigraphic_column_rank.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_stratigraphic_unit_feature.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/strata/_stratigraphic_unit_interpretation.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_base_surface.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_combined_surface.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_mesh.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_pointset.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_tri_mesh.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_tri_mesh_stencil.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/surface/_triangulated_patch.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_any_time_series.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_from_nexus_summary.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_functions.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_geologic_time_series.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_time_duration.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/time_series/_time_series.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/_hexa_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/_prism_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/_pyramid_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/_tetra_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/unstructured/_unstructured_grid.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/weights_and_measures/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/weights_and_measures/nexus_units.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/weights_and_measures/weights_and_measures.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/__init__.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_md_datum.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_trajectory.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_wellbore_frame.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_wellbore_marker.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/_wellbore_marker_frame.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/blocked_well_frame.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/well_object_funcs.py +0 -0
- {resqpy-5.2.0 → resqpy-5.2.2}/resqpy/well/well_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: resqpy
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.2
|
|
4
4
|
Summary: Python API for working with RESQML models
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
|
20
20
|
Requires-Dist: h5py (>=3.7)
|
|
21
21
|
Requires-Dist: joblib (>=1.2)
|
|
22
22
|
Requires-Dist: lasio (>=0.31)
|
|
23
|
-
Requires-Dist: lxml (>=
|
|
23
|
+
Requires-Dist: lxml (>=5.1)
|
|
24
24
|
Requires-Dist: numba (>=0.59)
|
|
25
25
|
Requires-Dist: numpy (>=1.26)
|
|
26
26
|
Requires-Dist: pandas (>=2.2)
|
|
@@ -43,13 +43,13 @@ dependencies = [
|
|
|
43
43
|
"numpy>=1.26",
|
|
44
44
|
"pandas>=2.2",
|
|
45
45
|
"h5py>=3.7",
|
|
46
|
-
"lxml>=
|
|
46
|
+
"lxml>=5.1",
|
|
47
47
|
"lasio>=0.31",
|
|
48
48
|
"scipy>=1.9",
|
|
49
49
|
"numba>=0.59",
|
|
50
50
|
"joblib>=1.2",
|
|
51
51
|
]
|
|
52
|
-
version = "5.2.
|
|
52
|
+
version = "5.2.2"
|
|
53
53
|
|
|
54
54
|
[project.urls]
|
|
55
55
|
Repository = "https://github.com/bp/resqpy"
|
|
@@ -73,10 +73,12 @@ types-lxml = ">=2026.2.16"
|
|
|
73
73
|
h5py-stubs = ">=0.1.2"
|
|
74
74
|
pandas-stubs = {version = ">=3.0.3", python = ">=3.11"}
|
|
75
75
|
scipy-stubs = {version = ">=1.17.1", python = ">=3.11"}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
|
|
77
|
+
[tool.poetry.group.docs.dependencies]
|
|
78
|
+
# Keep consistent with docs/requirements-extras.txt
|
|
79
|
+
Sphinx = {version = "==9.1.0", python = ">=3.12"}
|
|
80
|
+
autoclasstoc = {version = "==1.7.0", python = ">=3.12"}
|
|
81
|
+
sphinx-rtd-theme = {version = "==3.1.0", python = ">=3.12"}
|
|
80
82
|
|
|
81
83
|
[tool.poetry.requires-plugins]
|
|
82
84
|
poetry-dynamic-versioning = { version = ">=1.0,<2.0", extras = ["plugin"] }
|
|
@@ -128,12 +130,11 @@ select = [
|
|
|
128
130
|
]
|
|
129
131
|
ignore = [
|
|
130
132
|
"F841", # local variable assigned but never used: sometimes deliberate
|
|
131
|
-
# pydocstyle exceptions for Google-style docstrings:
|
|
132
|
-
"D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407",
|
|
133
|
-
"D408", "D409", "D413",
|
|
134
133
|
# Further pydocstyle exceptions for relatively unimportant issues:
|
|
135
134
|
"D202", "D210", "D402", "D405", "D415", "D417",
|
|
136
135
|
]
|
|
136
|
+
[tool.ruff.lint.pydocstyle]
|
|
137
|
+
convention = "google"
|
|
137
138
|
|
|
138
139
|
[tool.ruff.lint.per-file-ignores]
|
|
139
140
|
# Do not check docstrings for the tests or docs directories.
|
|
@@ -150,10 +151,16 @@ module = [
|
|
|
150
151
|
"lasio",
|
|
151
152
|
"h5py",
|
|
152
153
|
"lxml",
|
|
153
|
-
"numba"
|
|
154
154
|
]
|
|
155
155
|
ignore_missing_imports = true
|
|
156
156
|
|
|
157
|
+
[[tool.mypy.overrides]]
|
|
158
|
+
# numba ships a py.typed marker in recent releases, but mypy reports many false-postives.
|
|
159
|
+
# Skip these imports for now, treating numba as untyped.
|
|
160
|
+
module = ["numba", "numba.*"]
|
|
161
|
+
follow_imports = "skip"
|
|
162
|
+
follow_imports_for_stubs = true
|
|
163
|
+
|
|
157
164
|
[tool.pytest.ini_options]
|
|
158
165
|
addopts = "-ra"
|
|
159
166
|
junit_family = "xunit2"
|
|
@@ -657,7 +657,7 @@ class Grid(BaseResqpy):
|
|
|
657
657
|
|
|
658
658
|
notes:
|
|
659
659
|
this code has the concept of a 'main' grid for a model, which resqml does not; it is vaguely
|
|
660
|
-
|
|
660
|
+
equivalent to a 'root' grid in a simulation model;
|
|
661
661
|
the write_active argument should generally be set to the same value as that passed to the write_hdf5... method;
|
|
662
662
|
the RESQML standard allows the geometry to be omitted for a grid, controlled here by the write_geometry argument;
|
|
663
663
|
the explicit geometry may be omitted for regular grids, in which case the arrays should not be written to the hdf5
|
|
@@ -725,13 +725,14 @@ class RegularGrid(grr_g.Grid):
|
|
|
725
725
|
|
|
726
726
|
see docstring for Grid.create_xml()
|
|
727
727
|
|
|
728
|
-
|
|
728
|
+
arguments:
|
|
729
729
|
add_cell_length_properties (boolean, default True): if True, 3 constant property arrays with cells as
|
|
730
730
|
indexable element are created to hold the lengths of the primary axes of the cells; the xml is
|
|
731
731
|
created for the properties and they are added to the model (no hdf5 write needed)
|
|
732
|
-
use_lattice (boolean, default True): if True, a geometry node is created with a Point3dLatticeArray
|
|
732
|
+
use_lattice (boolean, default True): if True, a geometry node is created with a Point3dLatticeArray
|
|
733
733
|
|
|
734
|
-
|
|
734
|
+
notes:
|
|
735
|
+
this method has additional arguments beyond those of Grid.create_xml();
|
|
735
736
|
if the regular grid has been instatiated using the as_irregular_grid mode, a lattice will not be used,
|
|
736
737
|
regardless of the use_lattice argument;
|
|
737
738
|
if using a lattice representation, the write_geomety argument is ignored and a lattice geometry will
|
|
@@ -508,7 +508,7 @@ def find_faces_to_represent_surface_regular_dense_optimised(grid,
|
|
|
508
508
|
n_batches = 20):
|
|
509
509
|
"""Returns a grid connection set containing those cell faces which are deemed to represent the surface.
|
|
510
510
|
|
|
511
|
-
|
|
511
|
+
arguments:
|
|
512
512
|
grid (RegularGrid): the grid for which to create a grid connection set representation of the surface;
|
|
513
513
|
must be aligned, ie. I with +x, J with +y, K with +z and local origin of (0.0, 0.0, 0.0)
|
|
514
514
|
surface (Surface): the surface to be intersected with the grid
|
|
@@ -887,7 +887,7 @@ def find_faces_to_represent_surface_regular_optimised(grid,
|
|
|
887
887
|
direction = 'IJK'):
|
|
888
888
|
"""Returns a grid connection set containing those cell faces which are deemed to represent the surface.
|
|
889
889
|
|
|
890
|
-
|
|
890
|
+
arguments:
|
|
891
891
|
grid (RegularGrid): the grid for which to create a grid connection set representation of the surface;
|
|
892
892
|
must be aligned, ie. I with +x, J with +y, K with +z and local origin of (0.0, 0.0, 0.0)
|
|
893
893
|
surface (Surface): the surface to be intersected with the grid
|
|
@@ -15,6 +15,9 @@ import resqpy.olio.xml_et as rqet
|
|
|
15
15
|
import resqpy.organize as rqo
|
|
16
16
|
from resqpy.olio.base import BaseResqpy
|
|
17
17
|
|
|
18
|
+
valid_line_roles = ('fault center line', 'pick', 'inner ring', 'outer ring', 'trajectory', 'interpretation line',
|
|
19
|
+
'contact', 'depositional line', 'erosion line', 'contouring', 'pillar')
|
|
20
|
+
|
|
18
21
|
|
|
19
22
|
class _BasePolyline(BaseResqpy):
|
|
20
23
|
"""Base class to implement shared methods for other classes in this module."""
|
|
@@ -33,6 +33,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
33
33
|
is_closed = None,
|
|
34
34
|
title = None,
|
|
35
35
|
rep_int_root = None,
|
|
36
|
+
line_role = None,
|
|
36
37
|
originator = None,
|
|
37
38
|
extra_metadata = None):
|
|
38
39
|
"""Initialises a new polyline object.
|
|
@@ -50,6 +51,9 @@ class Polyline(rql_c._BasePolyline):
|
|
|
50
51
|
title (str, optional): the citation title to use for a new polyline;
|
|
51
52
|
ignored if uuid is not None
|
|
52
53
|
rep_int_root
|
|
54
|
+
line_role (str, optional): the RESQML LineRole of a new polyline, one of: 'fault center line', 'pick',
|
|
55
|
+
'inner ring', 'outer ring', 'trajectory', 'interpretation line', 'contact', 'depositional line',
|
|
56
|
+
'erosion line', 'contouring', 'pillar'; ignored if uuid is not None
|
|
53
57
|
originator (str, optional): the name of the person creating the polyline, defaults to login id;
|
|
54
58
|
ignored if uuid is not None
|
|
55
59
|
extra_metadata (dict, optional): string key, value pairs to add as extra metadata for the polyline;
|
|
@@ -68,6 +72,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
68
72
|
self.coordinates = None
|
|
69
73
|
self.centre = None
|
|
70
74
|
self.rep_int_root = rep_int_root # Optional represented interpretation xml root node
|
|
75
|
+
self.line_role = line_role # Optional RESQML LineRole string
|
|
71
76
|
self.property_collection = None
|
|
72
77
|
super().__init__(model = parent_model,
|
|
73
78
|
uuid = uuid,
|
|
@@ -90,7 +95,6 @@ class Polyline(rql_c._BasePolyline):
|
|
|
90
95
|
assert not any(map(lambda x: x is None, self.nodepatch)) # Required fields - assert neither are None
|
|
91
96
|
|
|
92
97
|
# TODO: Add SeismicCoordinates later - optional field
|
|
93
|
-
# TODO: Add LineRole later - optional field
|
|
94
98
|
|
|
95
99
|
def _load_from_xml(self):
|
|
96
100
|
|
|
@@ -121,6 +125,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
121
125
|
assert not any(map(lambda x: x is None, self.nodepatch)) # Required fields - assert neither are None
|
|
122
126
|
|
|
123
127
|
self.rep_int_root = self.model.referenced_node(rqet.find_tag(poly_root, 'RepresentedInterpretation'))
|
|
128
|
+
self.line_role = rqet.find_tag_text(poly_root, 'LineRole')
|
|
124
129
|
|
|
125
130
|
@property
|
|
126
131
|
def rep_int_uuid(self):
|
|
@@ -159,6 +164,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
159
164
|
set_crs = original.crs_uuid,
|
|
160
165
|
is_closed = original.isclosed,
|
|
161
166
|
title = title if title else original.title,
|
|
167
|
+
line_role = original.line_role,
|
|
162
168
|
originator = originator if originator else original.originator,
|
|
163
169
|
extra_metadata = extra_metadata)
|
|
164
170
|
|
|
@@ -207,6 +213,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
207
213
|
set_crs = original.crs_uuid,
|
|
208
214
|
is_closed = False,
|
|
209
215
|
title = title if title else original.title,
|
|
216
|
+
line_role = original.line_role,
|
|
210
217
|
originator = originator if originator else original.originator,
|
|
211
218
|
extra_metadata = extra_metadata)
|
|
212
219
|
|
|
@@ -221,7 +228,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
221
228
|
|
|
222
229
|
@classmethod
|
|
223
230
|
def for_regular_polygon(cls, model, n, radius, centre_xyz, crs_uuid, title):
|
|
224
|
-
"""
|
|
231
|
+
"""Returns a closed polyline representing a regular polygon in xy plane.
|
|
225
232
|
|
|
226
233
|
arguments:
|
|
227
234
|
model (Model): the model for which the new polyline is intended
|
|
@@ -234,7 +241,7 @@ class Polyline(rql_c._BasePolyline):
|
|
|
234
241
|
returns:
|
|
235
242
|
a new closed Polyline representing a regular polygon in the xy plane
|
|
236
243
|
|
|
237
|
-
|
|
244
|
+
notes:
|
|
238
245
|
z values are all set to the z value of the centre point;
|
|
239
246
|
one vertex will have an x value identical to the centre and a positive y offset (due north usually);
|
|
240
247
|
this method does not write to hdf5 nor create xml for the new polyline
|
|
@@ -782,7 +789,8 @@ class Polyline(rql_c._BasePolyline):
|
|
|
782
789
|
set_coord = spline_coords,
|
|
783
790
|
set_crs = self.crs_uuid,
|
|
784
791
|
title = title,
|
|
785
|
-
rep_int_root = rep_int_root
|
|
792
|
+
rep_int_root = rep_int_root,
|
|
793
|
+
line_role = self.line_role)
|
|
786
794
|
|
|
787
795
|
def area(self):
|
|
788
796
|
"""Returns the area in the xy plane of a closed convex polygon."""
|
|
@@ -869,6 +877,12 @@ class Polyline(rql_c._BasePolyline):
|
|
|
869
877
|
content_type = content_type,
|
|
870
878
|
root = polyline)
|
|
871
879
|
|
|
880
|
+
if self.line_role is not None:
|
|
881
|
+
assert self.line_role in rql_c.valid_line_roles, f'illegal line role value for polyline: {self.line_role}'
|
|
882
|
+
role_node = rqet.SubElement(polyline, ns['resqml2'] + 'LineRole')
|
|
883
|
+
role_node.set(ns['xsi'] + 'type', ns['resqml2'] + 'LineRole')
|
|
884
|
+
role_node.text = self.line_role
|
|
885
|
+
|
|
872
886
|
isclosed = rqet.SubElement(polyline, ns['resqml2'] + 'IsClosed')
|
|
873
887
|
isclosed.set(ns['xsi'] + 'type', ns['xsd'] + 'boolean')
|
|
874
888
|
isclosed.text = str(self.isclosed).lower()
|
|
@@ -31,6 +31,7 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
31
31
|
charisma_file = None,
|
|
32
32
|
crs_uuid = None,
|
|
33
33
|
title = None,
|
|
34
|
+
line_role = None,
|
|
34
35
|
originator = None,
|
|
35
36
|
extra_metadata = None):
|
|
36
37
|
"""Initialises a new PolylineSet object.
|
|
@@ -45,6 +46,10 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
45
46
|
crs_uuid (UUID, optional): required if loading from an IRAP or Charisma file
|
|
46
47
|
title (str, optional): the citation title to use for a new polyline set;
|
|
47
48
|
ignored if uuid is not None
|
|
49
|
+
line_role (str, optional): the RESQML LineRole of a new polyline set, one of: 'fault center line',
|
|
50
|
+
'pick', 'inner ring', 'outer ring', 'trajectory', 'interpretation line', 'contact',
|
|
51
|
+
'depositional line', 'erosion line', 'contouring', 'pillar'; if None and polylines is given,
|
|
52
|
+
a line role shared by all the polylines is inherited; ignored if uuid is not None
|
|
48
53
|
originator (str, optional): the name of the person creating the polyline set, defaults to login id;
|
|
49
54
|
ignored if uuid is not None
|
|
50
55
|
extra_metadata (dict, optional): string key, value pairs to add as extra metadata for the polyline set;
|
|
@@ -65,6 +70,7 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
65
70
|
self.count_perpol = None
|
|
66
71
|
self.polys = []
|
|
67
72
|
self.rep_int_root = None
|
|
73
|
+
self.line_role = line_role # Optional RESQML LineRole string
|
|
68
74
|
self.save_polys = False
|
|
69
75
|
self.boolnotconstant = None
|
|
70
76
|
self.boolvalue = None
|
|
@@ -94,6 +100,10 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
94
100
|
if self.crs_uuid is not None:
|
|
95
101
|
break
|
|
96
102
|
self.polys = polylines
|
|
103
|
+
if self.line_role is None:
|
|
104
|
+
role_set = set(poly.line_role for poly in polylines)
|
|
105
|
+
if len(role_set) == 1:
|
|
106
|
+
self.line_role = role_set.pop()
|
|
97
107
|
# Setting the title of the first polyline given as the PolylineSet title
|
|
98
108
|
if not self.title:
|
|
99
109
|
if len(polylines) > 1:
|
|
@@ -117,6 +127,7 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
117
127
|
root = self.root
|
|
118
128
|
|
|
119
129
|
self.rep_int_root = self.model.referenced_node(rqet.find_tag(root, 'RepresentedInterpretation'))
|
|
130
|
+
self.line_role = rqet.find_tag_text(root, 'LineRole')
|
|
120
131
|
self.closed_array = np.empty((0,), dtype = bool)
|
|
121
132
|
|
|
122
133
|
for patch_node in rqet.list_of_tag(root, 'LinePatch'): # Loop over all LinePatches - likely just the one
|
|
@@ -151,7 +162,7 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
151
162
|
assert np.sum(self.count_perpol) == len(self.coordinates)
|
|
152
163
|
|
|
153
164
|
subpolys = self.convert_to_polylines(closed_array, self.count_perpol, self.coordinates, self.crs_uuid,
|
|
154
|
-
self.rep_int_root)
|
|
165
|
+
self.rep_int_root, self.line_role)
|
|
155
166
|
# Check we have the right number of polygons
|
|
156
167
|
assert len(subpolys) == len(self.count_perpol)
|
|
157
168
|
|
|
@@ -277,6 +288,13 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
277
288
|
content_type = content_type,
|
|
278
289
|
root = polyset)
|
|
279
290
|
|
|
291
|
+
if self.line_role is not None:
|
|
292
|
+
assert self.line_role in rql_c.valid_line_roles, \
|
|
293
|
+
f'illegal line role value for polyline set: {self.line_role}'
|
|
294
|
+
role_node = rqet.SubElement(polyset, ns['resqml2'] + 'LineRole')
|
|
295
|
+
role_node.set(ns['xsi'] + 'type', ns['resqml2'] + 'LineRole')
|
|
296
|
+
role_node.text = self.line_role
|
|
297
|
+
|
|
280
298
|
# We convert all Polylines to the CRS of the first Polyline in the set, so set this as crs_uuid
|
|
281
299
|
|
|
282
300
|
patch = rqet.SubElement(polyset, ns['resqml2'] + 'LinePatch')
|
|
@@ -437,7 +455,8 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
437
455
|
count_perpol = None,
|
|
438
456
|
coordinates = None,
|
|
439
457
|
crs_uuid = None,
|
|
440
|
-
rep_int_root = None
|
|
458
|
+
rep_int_root = None,
|
|
459
|
+
line_role = None):
|
|
441
460
|
"""Returns a list of Polylines objects from a PolylineSet.
|
|
442
461
|
|
|
443
462
|
note:
|
|
@@ -449,6 +468,7 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
449
468
|
coordinates: array containing coordinates for all the polygons
|
|
450
469
|
crs_uuid: crs_uuid for polylineset
|
|
451
470
|
rep_int_root: represented interpretation root (optional)
|
|
471
|
+
line_role: RESQML LineRole string to apply to each polyline (optional)
|
|
452
472
|
|
|
453
473
|
returns:
|
|
454
474
|
list of polyline objects
|
|
@@ -473,6 +493,8 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
473
493
|
crs_uuid = self.crs_uuid
|
|
474
494
|
if rep_int_root is None:
|
|
475
495
|
rep_int_root = self.rep_int_root
|
|
496
|
+
if line_role is None:
|
|
497
|
+
line_role = self.line_role
|
|
476
498
|
|
|
477
499
|
polys = []
|
|
478
500
|
count = 0
|
|
@@ -496,7 +518,8 @@ class PolylineSet(rql_c._BasePolyline):
|
|
|
496
518
|
set_coord = subset,
|
|
497
519
|
set_crs = crs_uuid,
|
|
498
520
|
title = subtitle,
|
|
499
|
-
rep_int_root = rep_int_root
|
|
521
|
+
rep_int_root = rep_int_root,
|
|
522
|
+
line_role = line_role))
|
|
500
523
|
|
|
501
524
|
return polys
|
|
502
525
|
|
|
@@ -20,7 +20,7 @@ import resqpy.olio.uuid as bu
|
|
|
20
20
|
|
|
21
21
|
def find_faces_to_represent_surface_regular_wrapper(
|
|
22
22
|
index: int,
|
|
23
|
-
parent_tmp_dir: str,
|
|
23
|
+
parent_tmp_dir: str | Path,
|
|
24
24
|
use_index_as_realisation: bool,
|
|
25
25
|
grid_epc: str,
|
|
26
26
|
grid_uuid: Union[UUID, str],
|
|
@@ -55,7 +55,7 @@ def find_faces_to_represent_surface_regular_wrapper(
|
|
|
55
55
|
|
|
56
56
|
arguments:
|
|
57
57
|
index (int): the index of the function call from the multiprocessing function
|
|
58
|
-
parent_tmp_dir (str): the parent temporary directory path from the multiprocessing function
|
|
58
|
+
parent_tmp_dir (str or Path): the parent temporary directory path from the multiprocessing function
|
|
59
59
|
use_index_as_realisation (bool): if True, uses the index number as the realization number on
|
|
60
60
|
the property collection
|
|
61
61
|
grid_epc (str): epc file path where the grid is saved
|
|
@@ -17,7 +17,7 @@ import resqpy.multi_processing as rqmp
|
|
|
17
17
|
|
|
18
18
|
def mesh_from_regular_grid_column_property_wrapper(
|
|
19
19
|
index: int,
|
|
20
|
-
parent_tmp_dir: str,
|
|
20
|
+
parent_tmp_dir: str | Path,
|
|
21
21
|
grid_epc: str,
|
|
22
22
|
grid_uuid: Union[UUID, str],
|
|
23
23
|
prop_uuids: List[Union[UUID, str]],
|
|
@@ -26,7 +26,7 @@ def mesh_from_regular_grid_column_property_wrapper(
|
|
|
26
26
|
|
|
27
27
|
arguments:
|
|
28
28
|
index (int): the index of the function call from the multiprocessing function
|
|
29
|
-
parent_tmp_dir (str): the parent temporary directory path from the multiprocessing function
|
|
29
|
+
parent_tmp_dir (str or Path): the parent temporary directory path from the multiprocessing function
|
|
30
30
|
grid_epc (str): epc file path where the grid is saved
|
|
31
31
|
grid_uuid (UUID or str): UUID (universally unique identifier) of the regular grid object
|
|
32
32
|
prop_uuids (list of UUID or str): a list of the property uuids used to create each Mesh
|
|
@@ -217,13 +217,13 @@ class RelPerm(DataFrame):
|
|
|
217
217
|
table_name_keyword = 'WOTABLE (LOW_SAL)\n'
|
|
218
218
|
else:
|
|
219
219
|
table_name_keyword = 'WOTABLE\n'
|
|
220
|
-
df.rename(columns = {'SW': 'SW', 'KRW': 'KRW', 'KRO': 'KROW', 'PC': 'PCWO'}
|
|
220
|
+
df = df.rename(columns = {'SW': 'SW', 'KRW': 'KRW', 'KRO': 'KROW', 'PC': 'PCWO'})
|
|
221
221
|
elif {'KRG', 'KRO'}.issubset(set(df.columns)):
|
|
222
222
|
table_name_keyword = 'GOTABLE\n'
|
|
223
|
-
df.rename(columns = {'SG': 'SG', 'KRG': 'KRG', 'KRO': 'KROG', 'PC': 'PCGO'}
|
|
223
|
+
df = df.rename(columns = {'SG': 'SG', 'KRG': 'KRG', 'KRO': 'KROG', 'PC': 'PCGO'})
|
|
224
224
|
elif {'KRW', 'KRW'}.issubset(set(df.columns)):
|
|
225
225
|
table_name_keyword = 'GWTABLE\n'
|
|
226
|
-
df.rename(columns = {'SG': 'SG', 'KRG': 'KRG', 'KRW': 'KRWG', 'PC': 'PCGW'}
|
|
226
|
+
df = df.rename(columns = {'SG': 'SG', 'KRG': 'KRG', 'KRW': 'KRWG', 'PC': 'PCGW'})
|
|
227
227
|
else:
|
|
228
228
|
raise Exception('incorrect rel. perm. column combination encountered')
|
|
229
229
|
|
|
@@ -315,7 +315,8 @@ def text_to_relperm_dict(relperm_data, is_file = True):
|
|
|
315
315
|
else:
|
|
316
316
|
table_end = len(data)
|
|
317
317
|
table_cols = data[start_pos + 1]
|
|
318
|
-
|
|
318
|
+
# pad rows with missing trailing values (eg. blank Pc) to the number of columns
|
|
319
|
+
table_rows = [row + [None] * (len(table_cols) - len(row)) for row in data[start_pos + 2:table_end]]
|
|
319
320
|
df = pd.DataFrame(table_rows, columns = table_cols)
|
|
320
321
|
df.columns = df.columns.map(df_cols_dict)
|
|
321
322
|
sat_col = [x for x in df.columns if 'S' in x][0]
|
|
@@ -417,7 +417,7 @@ def get_well_data(
|
|
|
417
417
|
file: TextIO,
|
|
418
418
|
well_name: str,
|
|
419
419
|
pointer: int,
|
|
420
|
-
column_list: List[str] =
|
|
420
|
+
column_list: Union[List[str], None] = None,
|
|
421
421
|
selecting: bool = False,
|
|
422
422
|
keep_duplicate_cells: bool = True,
|
|
423
423
|
keep_null_columns: bool = True,
|
|
@@ -432,9 +432,8 @@ def get_well_data(
|
|
|
432
432
|
well_name (str): name of the well.
|
|
433
433
|
pointer (int): the file object's start position of the well data represented as number of
|
|
434
434
|
bytes from the beginning of the file.
|
|
435
|
-
column_list (List[str]): if present, each dataframe
|
|
436
|
-
columns, in this order. If None
|
|
437
|
-
keys (each mapping to None rather than a dataframe). If an empty list (default), each
|
|
435
|
+
column_list (Union[List[str], None], optional): if present and selecting is True, each dataframe
|
|
436
|
+
returned contains these columns, in this order. If None (default) or an empty list, each
|
|
438
437
|
dataframe contains the columns listed in the corresponding wellspec header, in the order
|
|
439
438
|
found in the file.
|
|
440
439
|
selecting (bool): True if the column_list contains at least one column name, False otherwise
|
|
@@ -449,6 +448,8 @@ def get_well_data(
|
|
|
449
448
|
Returns:
|
|
450
449
|
Pandas dataframe of the well data or None if all the data are NA.
|
|
451
450
|
"""
|
|
451
|
+
if column_list is None:
|
|
452
|
+
column_list = []
|
|
452
453
|
file.seek(pointer)
|
|
453
454
|
kf.skip_blank_lines_and_comments(file)
|
|
454
455
|
line = kf.strip_trailing_comment(file.readline()).upper()
|
|
@@ -509,11 +510,11 @@ def get_well_data(
|
|
|
509
510
|
df = pd.DataFrame(data)
|
|
510
511
|
|
|
511
512
|
if not keep_null_columns:
|
|
512
|
-
df.drop(columns = df.columns[df.isna().all()]
|
|
513
|
+
df = df.drop(columns = df.columns[df.isna().all()])
|
|
513
514
|
|
|
514
515
|
if not keep_duplicate_cells and any(df.duplicated(subset = ["IW", "JW", "L"])):
|
|
515
516
|
log.warning(f"There are duplicate cells for well {well_name}.")
|
|
516
|
-
df.drop_duplicates(subset = ["IW", "JW", "L"], keep = "last"
|
|
517
|
+
df = df.drop_duplicates(subset = ["IW", "JW", "L"], keep = "last")
|
|
517
518
|
|
|
518
519
|
def stat_tranformation(row):
|
|
519
520
|
if row["STAT"] == "ON":
|
|
@@ -609,6 +610,6 @@ def get_all_well_data(
|
|
|
609
610
|
df_combined = pd.concat(df_list, ignore_index = True)
|
|
610
611
|
|
|
611
612
|
if not keep_null_columns:
|
|
612
|
-
df_combined.drop(columns = df_combined.columns[df_combined.isna().all()]
|
|
613
|
+
df_combined = df_combined.drop(columns = df_combined.columns[df_combined.isna().all()])
|
|
613
614
|
|
|
614
615
|
return df_combined
|
|
@@ -295,28 +295,34 @@ def _part_direction(collection, part):
|
|
|
295
295
|
return collection.facet_for_part(part)
|
|
296
296
|
|
|
297
297
|
|
|
298
|
+
def _sorted_patch_list(part_node, patch_tag):
|
|
299
|
+
patch_list = rqet.list_of_tag(part_node, patch_tag)
|
|
300
|
+
assert len(patch_list) > 0, f'no {patch_tag} found for property'
|
|
301
|
+
# order patches to match the patches of the supporting representation
|
|
302
|
+
patch_list.sort(key = lambda patch: rqet.find_tag_int(patch, 'RepresentationPatchIndex') or 0)
|
|
303
|
+
return patch_list
|
|
304
|
+
|
|
305
|
+
|
|
298
306
|
def _cached_part_array_ref_get_node_points(part_node, dtype):
|
|
299
|
-
patch_list =
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if first_values_node is None:
|
|
307
|
+
patch_list = _sorted_patch_list(part_node, 'PatchOfPoints')
|
|
308
|
+
values_nodes = [rqet.find_tag(patch, 'Points') for patch in patch_list]
|
|
309
|
+
if any(node is None for node in values_nodes):
|
|
303
310
|
return None # could treat as fatal error
|
|
304
311
|
if dtype is None:
|
|
305
312
|
dtype = 'float'
|
|
306
313
|
else:
|
|
307
314
|
assert dtype in ['float', float, np.float32, np.float64]
|
|
308
315
|
tag = 'Coordinates'
|
|
309
|
-
return
|
|
316
|
+
return values_nodes, tag, dtype
|
|
310
317
|
|
|
311
318
|
|
|
312
319
|
def _cached_part_array_ref_get_node_values(part_node, dtype):
|
|
313
|
-
patch_list =
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
if first_values_node is None:
|
|
320
|
+
patch_list = _sorted_patch_list(part_node, 'PatchOfValues')
|
|
321
|
+
values_nodes = [rqet.find_tag(patch, 'Values') for patch in patch_list]
|
|
322
|
+
if any(node is None for node in values_nodes):
|
|
317
323
|
return None # could treat as fatal error
|
|
318
324
|
if dtype is None:
|
|
319
|
-
array_type = rqet.node_type(
|
|
325
|
+
array_type = rqet.node_type(values_nodes[0])
|
|
320
326
|
assert array_type is not None
|
|
321
327
|
if array_type == 'DoubleHdf5Array':
|
|
322
328
|
dtype = 'float'
|
|
@@ -327,7 +333,7 @@ def _cached_part_array_ref_get_node_values(part_node, dtype):
|
|
|
327
333
|
else:
|
|
328
334
|
raise ValueError('array type not catered for: ' + str(array_type))
|
|
329
335
|
tag = 'Values'
|
|
330
|
-
return
|
|
336
|
+
return values_nodes, tag, dtype
|
|
331
337
|
|
|
332
338
|
|
|
333
339
|
def _process_imported_property_get_add_min_max(points, property_kind, string_lookup_uuid, local_property_kind_uuid,
|
|
@@ -605,9 +611,14 @@ def _cached_part_array_ref_const_none(collection, part, dtype, model, cached_arr
|
|
|
605
611
|
if part_node is None:
|
|
606
612
|
return None
|
|
607
613
|
if collection.points_for_part(part):
|
|
608
|
-
|
|
614
|
+
values_nodes, tag, dtype = _cached_part_array_ref_get_node_points(part_node, dtype)
|
|
609
615
|
else:
|
|
610
|
-
|
|
616
|
+
values_nodes, tag, dtype = _cached_part_array_ref_get_node_values(part_node, dtype)
|
|
617
|
+
|
|
618
|
+
if len(values_nodes) > 1:
|
|
619
|
+
_cached_part_array_ref_multiple_patches(collection, model, values_nodes, tag, dtype, cached_array_name)
|
|
620
|
+
return
|
|
621
|
+
first_values_node = values_nodes[0]
|
|
611
622
|
|
|
612
623
|
# the required shape is required if a bool array may need to be unpacked from bits
|
|
613
624
|
required_shape = None
|
|
@@ -628,6 +639,17 @@ def _cached_part_array_ref_const_none(collection, part, dtype, model, cached_arr
|
|
|
628
639
|
dtype = dtype)
|
|
629
640
|
|
|
630
641
|
|
|
642
|
+
def _cached_part_array_ref_multiple_patches(collection, model, values_nodes, tag, dtype, cached_array_name):
|
|
643
|
+
# note: packed boolean arrays are not unpacked here, as resqpy only writes a single patch of values
|
|
644
|
+
patch_arrays = []
|
|
645
|
+
for values_node in values_nodes:
|
|
646
|
+
h5_key_pair = model.h5_uuid_and_path_for_node(values_node, tag = tag)
|
|
647
|
+
if h5_key_pair is None:
|
|
648
|
+
return None
|
|
649
|
+
patch_arrays.append(model.h5_array_slice(h5_key_pair, (slice(None),)))
|
|
650
|
+
setattr(collection, cached_array_name, np.concatenate(patch_arrays).astype(dtype))
|
|
651
|
+
|
|
652
|
+
|
|
631
653
|
def _cached_part_array_ref_const_notnone(collection, part, const_value, cached_array_name):
|
|
632
654
|
assert not collection.points_for_part(part), 'constant arrays not supported for points properties'
|
|
633
655
|
assert collection.support is not None
|
|
@@ -1788,9 +1788,9 @@ class PropertyCollection():
|
|
|
1788
1788
|
the same cached array so calling code should copy if duplication is needed
|
|
1789
1789
|
|
|
1790
1790
|
notes:
|
|
1791
|
-
this function is the usual way to get at the actual property array;
|
|
1792
|
-
|
|
1793
|
-
|
|
1791
|
+
this function is the usual way to get at the actual property array; if the array is stored as multiple
|
|
1792
|
+
patches in the hdf5 file, the patches are read in RepresentationPatchIndex order and concatenated;
|
|
1793
|
+
the masked functionality can be used to apply a common mask, stored in the supporting
|
|
1794
1794
|
representation object with the attribute name 'inactive', to multiple properties (this will only work
|
|
1795
1795
|
if the indexable element is set to the typical value for the class of supporting representation, eg.
|
|
1796
1796
|
'cells' for grid objects); if exclude_null is set True then null value elements will also be masked out
|
|
@@ -114,7 +114,7 @@ def import_nexus(
|
|
|
114
114
|
only relevant if vdb_file is not None; see also vdb_property_list
|
|
115
115
|
- vdb_recurrent_properties (bool, default False): if True, recurrent vdb properties are imported;
|
|
116
116
|
only relevant if vdb_file is not None; see also vdb_property_list
|
|
117
|
-
- timestep_selection (str, default 'all): 'first', 'last', 'first and last', 'all',
|
|
117
|
+
- timestep_selection (str, default 'all'): 'first', 'last', 'first and last', 'all',
|
|
118
118
|
or list of ints being reporting timestep numbers; ignored if vdb_recurrent_properties is False
|
|
119
119
|
- use_compressed_time_series (bool, default True): generates reduced time series containing
|
|
120
120
|
timesteps with recurrent properties from vdb, rather than full nexus summary time series
|
|
@@ -67,7 +67,7 @@ def import_vdb_all_grids(resqml_file_root,
|
|
|
67
67
|
- vdb_recurrent_properties (bool, default False): if True, recurrent vdb properties are imported;
|
|
68
68
|
only relevant if vdb_file is not None; see also vdb_property_list
|
|
69
69
|
- decoarsen (bool, default True): where ICOARSE is present, redistribute data to uncoarse cells
|
|
70
|
-
- timestep_selection (str, default 'all): 'first', 'last', 'first and last', 'all', or list of ints
|
|
70
|
+
- timestep_selection (str, default 'all'): 'first', 'last', 'first and last', 'all', or list of ints
|
|
71
71
|
being reporting timestep numbers to include; ignored if vdb_recurrent_properties is False
|
|
72
72
|
- create_property_set (bool, default False): if True a resqml PropertySet is created
|
|
73
73
|
- vdb_property_list (list of str, optional): list of vdb static and/or recurrent properties to
|
|
@@ -358,10 +358,10 @@ class Surface(rqsb.BaseSurface):
|
|
|
358
358
|
arrays are returned
|
|
359
359
|
|
|
360
360
|
returns:
|
|
361
|
-
tuple (triangles, points)
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
tuple (triangles, points) where
|
|
362
|
+
triangles is an int array of shape (N, 3) holding integer indices into the points array,
|
|
363
|
+
being the nodes of the corners of the triangles, and
|
|
364
|
+
points is a float array of shape (M, 3) being a flat array of xyz points, indexed by triangles
|
|
365
365
|
|
|
366
366
|
:meta common:
|
|
367
367
|
"""
|
|
@@ -346,8 +346,8 @@ class BlockedWell(BaseResqpy):
|
|
|
346
346
|
"""Returns numpy int array of shape (N, 2, 2) being pairs of face (axis, polarity) pairs, to go with cell_kji0_array().
|
|
347
347
|
|
|
348
348
|
notes:
|
|
349
|
-
each of the N rows in the returned array is of the form
|
|
350
|
-
|
|
349
|
+
each of the N rows in the returned array is of the form
|
|
350
|
+
((entry_face_axis, entry_face_polarity), (exit_face_axis, exit_face_polarity));
|
|
351
351
|
where the axis values are in the range 0 to 2 for k, j & i respectively, and
|
|
352
352
|
the polarity values are zero for the 'negative' face and 1 for the 'positive' face;
|
|
353
353
|
exit values may be -1 to indicate TD within the cell (ie. no exit point)
|
|
@@ -973,7 +973,7 @@ class BlockedWell(BaseResqpy):
|
|
|
973
973
|
- the min_length and min_kh limits apply to individual cell intervals and thus depend on cell size;
|
|
974
974
|
- the water and oil saturation limits are for saturations at a single time and affect whether the interval
|
|
975
975
|
is included in the dataframe
|
|
976
|
-
|
|
976
|
+
- to turn perforations off and on over time create a time series dependent bunch of boolean properties on
|
|
977
977
|
the blocked well, with title 'STAT' or local property kind 'well connection open';
|
|
978
978
|
- the saturation limits do not stop deeper intervals with qualifying saturations from being included;
|
|
979
979
|
- the k0_list, perforation_list and region_list arguments should be set to None to disable the
|
|
@@ -202,7 +202,7 @@ class DeviationSurvey(BaseResqpy):
|
|
|
202
202
|
represented_interp = None):
|
|
203
203
|
"""Load MD, aximuth & inclination data from an ascii deviation survey file.
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
arguments:
|
|
206
206
|
parent_model (model.Model): the parent resqml model
|
|
207
207
|
deviation_survey_file (string): the filename of an ascii file holding the deviation survey data
|
|
208
208
|
comment_character (string): the character to be treated as introducing comments
|
|
File without changes
|