resqpy 5.1.11__tar.gz → 5.1.13__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.1.11 → resqpy-5.1.13}/PKG-INFO +3 -2
- {resqpy-5.1.11 → resqpy-5.1.13}/pyproject.toml +1 -1
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/__init__.py +1 -1
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/fault/_grid_connection_set.py +7 -4
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/wrappers/grid_surface_mp.py +21 -10
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/triangulation.py +1 -1
- {resqpy-5.1.11 → resqpy-5.1.13}/LICENSE +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/README.md +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/crs.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_edges_per_column_property_array.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_faults.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_one_blocked_well_property.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_one_grid_property_array.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_single_cell_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_wells_from_ascii_file.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_zone_by_layer_property.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_coarsened_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_common.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_copy_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_drape_to_surface.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_extract_box.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_extract_box_for_well.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_fault_throw_scaling.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_gather_ensemble.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_interpolated_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_local_depth_adjustment.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_refined_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_tilted_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_unsplit_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_zonal_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_zone_layer_ranges_from_array.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/fault/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/fault/_gcs_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_cell_properties.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_connection_sets.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_create_grid_xml.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_defined_geometry.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_extract_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_face_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_faults.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_grid_types.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_intervals_info.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_pillars.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_pixel_maps.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_points_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_regular_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_transmissibility.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_write_hdf5_from_caches.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_write_nexus_corp.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid/_xyz.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/_blocked_well_populate.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/_find_faces.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/_grid_skin.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/_grid_surface.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/_trajectory_intersects.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/grid_surface/grid_surface_cuda.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/lines/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/lines/_common.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/lines/_polyline.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/lines/_polyline_set.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_catalogue.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_context.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_forestry.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_grids.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_hdf5.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_model.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/model/_xml.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/_multiprocessing.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/wrappers/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/wrappers/blocked_well_mp.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/multi_processing/wrappers/mesh_mp.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/ab_toolbox.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/base.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/box_utilities.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/class_dict.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/consolidation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/data/build.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/data/properties.json +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/dataframe.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/exceptions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/factors.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/fine_coarse.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/grid_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/intersection.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/keyword_files.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/load_data.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/point_inclusion.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/random_seed.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/read_nexus_fault.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/relperm.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/simple_lines.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/time.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/trademark.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/transmission.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/uuid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/vdb.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/vector_utilities.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/volume.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/wellspec_keywords.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/write_data.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/write_hdf5.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/xml_et.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/xml_namespaces.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/olio/zmap_reader.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/_utils.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/boundary_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/boundary_feature_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/earth_model_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/fault_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/fluid_boundary_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/frontier_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/generic_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/genetic_boundary_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/geobody_boundary_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/geobody_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/geobody_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/geologic_unit_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/horizon_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/organization_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/rock_fluid_unit_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/structural_organization_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/tectonic_boundary_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/wellbore_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/organize/wellbore_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/_collection_add_part.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/_collection_create_xml.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/_collection_get_attributes.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/_collection_support.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/_property.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/attribute_property_set.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/grid_property_collection.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/property_collection.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/property_common.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/property_kind.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/string_lookup.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/well_interval_property.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/well_interval_property_collection.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/well_log.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/property/well_log_collection.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_add_ab_properties.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_add_surfaces.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_grid_from_cp.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_import_nexus.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_import_vdb_all_grids.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/rq_import/_import_vdb_ensemble.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_binary_contact_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_geologic_unit_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_strata_common.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_stratigraphic_column.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_stratigraphic_column_rank.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_stratigraphic_unit_feature.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/strata/_stratigraphic_unit_interpretation.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_base_surface.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_combined_surface.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_mesh.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_pointset.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_surface.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_tri_mesh.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_tri_mesh_stencil.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/surface/_triangulated_patch.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_any_time_series.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_from_nexus_summary.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_functions.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_geologic_time_series.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_time_duration.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/time_series/_time_series.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/_hexa_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/_prism_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/_pyramid_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/_tetra_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/unstructured/_unstructured_grid.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/weights_and_measures/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/weights_and_measures/nexus_units.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/weights_and_measures/weights_and_measures.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/__init__.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_blocked_well.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_deviation_survey.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_md_datum.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_trajectory.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_wellbore_frame.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_wellbore_marker.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/_wellbore_marker_frame.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/blocked_well_frame.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/well_object_funcs.py +0 -0
- {resqpy-5.1.11 → resqpy-5.1.13}/resqpy/well/well_utils.py +0 -0
@@ -10,6 +10,7 @@ import math as maths
|
|
10
10
|
import numpy as np
|
11
11
|
import pandas as pd
|
12
12
|
|
13
|
+
from typing import Optional
|
13
14
|
import resqpy.grid as grr
|
14
15
|
import resqpy.fault
|
15
16
|
import resqpy.olio.read_nexus_fault as rnf
|
@@ -2302,8 +2303,11 @@ def _copy_organisation_objects(target_model, source_model, gcs):
|
|
2302
2303
|
uuid) # will copy related features as well as interpretations
|
2303
2304
|
|
2304
2305
|
|
2305
|
-
def _sort_and_remove_duplicates(a, props = None):
|
2306
|
-
"""Return copy of 1D array a, sorted and with duplicates removed; secondary arrays can be kept in alignment.
|
2306
|
+
def _sort_and_remove_duplicates(a: np.ndarray, props: Optional[list[np.ndarray]] = None):
|
2307
|
+
"""Return copy of 1D array a, sorted and with duplicates removed; secondary arrays can be kept in alignment.
|
2308
|
+
|
2309
|
+
note: If present, property arrays are also sorted in-place with duplicates removed.
|
2310
|
+
"""
|
2307
2311
|
if a is None or a.size <= 1:
|
2308
2312
|
return a
|
2309
2313
|
assert a.ndim == 1
|
@@ -2317,9 +2321,8 @@ def _sort_and_remove_duplicates(a, props = None):
|
|
2317
2321
|
m = np.empty(a.size, dtype = bool)
|
2318
2322
|
m[0] = True
|
2319
2323
|
m[1:] = (a[1:] != a[:-1])
|
2320
|
-
if np.all(m):
|
2321
|
-
return a
|
2322
2324
|
if not no_props:
|
2325
|
+
assert props is not None
|
2323
2326
|
for i in range(len(props)):
|
2324
2327
|
p = props[i][si]
|
2325
2328
|
props[i] = p[m]
|
@@ -424,16 +424,7 @@ def find_faces_to_represent_surface_regular_wrapper(
|
|
424
424
|
indexable_element = "cells",
|
425
425
|
)
|
426
426
|
elif p_name == 'flange bool':
|
427
|
-
|
428
|
-
array,
|
429
|
-
f"from find_faces function for {surface.title}",
|
430
|
-
f'{surface.title} {p_name}',
|
431
|
-
discrete = True,
|
432
|
-
null_value = -1,
|
433
|
-
property_kind = "flange bool",
|
434
|
-
realization = realisation,
|
435
|
-
indexable_element = "faces",
|
436
|
-
)
|
427
|
+
log.debug('flange bool processed separately to ensure correct dtype for packing')
|
437
428
|
else:
|
438
429
|
raise ValueError(f'unrecognised property name {p_name}')
|
439
430
|
if property_collection.number_of_imports() > 0:
|
@@ -442,6 +433,26 @@ def find_faces_to_represent_surface_regular_wrapper(
|
|
442
433
|
uuids_properties = property_collection.create_xml_for_imported_list_and_add_parts_to_model(
|
443
434
|
find_local_property_kinds = True)
|
444
435
|
uuid_list.extend(uuids_properties)
|
436
|
+
|
437
|
+
if 'flange bool' in properties.keys():
|
438
|
+
log.debug('flange bool processed separately to ensure correct dtype for packing')
|
439
|
+
p_name = 'flange bool'
|
440
|
+
array = properties['flange bool']
|
441
|
+
property_collection.add_cached_array_to_imported_list(array,
|
442
|
+
f"from find_faces function for {surface.title}",
|
443
|
+
f'{surface.title} {p_name}',
|
444
|
+
discrete = True,
|
445
|
+
null_value = -1,
|
446
|
+
property_kind = "flange bool",
|
447
|
+
realization = realisation,
|
448
|
+
indexable_element = "faces")
|
449
|
+
if property_collection.number_of_imports() > 0:
|
450
|
+
# log.debug('writing gcs property hdf5 data')
|
451
|
+
property_collection.write_hdf5_for_imported_list(use_pack = use_pack, dtype = np.int8)
|
452
|
+
uuids_properties = property_collection.create_xml_for_imported_list_and_add_parts_to_model(
|
453
|
+
find_local_property_kinds = True)
|
454
|
+
uuid_list.extend(uuids_properties)
|
455
|
+
|
445
456
|
if grid_pc is not None and grid_pc.number_of_imports() > 0:
|
446
457
|
# log.debug('writing grid property (bisector) hdf5 data')
|
447
458
|
grid_pc.write_hdf5_for_imported_list(use_pack = use_pack)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{resqpy-5.1.11 → resqpy-5.1.13}/resqpy/derived_model/_add_edges_per_column_property_array.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|