gempy-engine 2026.2.0a2__tar.gz → 2026.2.0a3__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.
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/PKG-INFO +1 -1
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/implementation/finite_faults.md +8 -4
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/fault_drift_sampler.py +44 -14
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/fixed_weight_snapshots.py +21 -7
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/joint_extraction.py +24 -11
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_aux_faults_ops.py +24 -8
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/_version.py +3 -3
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/PKG-INFO +1 -1
- gempy_engine-2026.2.0a3/gempy_engine.egg-info/scm_version.json +8 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_stack_wiring.py +9 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_contacts.py +72 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_integration.py +32 -0
- gempy_engine-2026.2.0a2/gempy_engine.egg-info/scm_version.json +0 -8
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/.env.example +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/.gitignore +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/.vscode/launch.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/AGENTS.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/AUTHORS.rst +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/LICENSE +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/MICRO_ANISOTROPIC_FIELD_DEFORMATION.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/PLAN.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/README.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/apibinary.le +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/extent_capping.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/implementation/field_evaluation.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/implementation/joint_extraction.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/micro_points.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/docs/octree_refinement.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/_version.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/dual_contouring_overview.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/extent_capping.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/fault_bank_sampler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/joint_fault_banks.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/joint_topology.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/multi_scalar_dual_contouring.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/CONCAT_EVAL_PLAN.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/OPTIMIZE_PYKEOPS_EVAL.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_interp_scalar_field.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_interp_single_feature.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_masking_ops.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_multi_scalar_field_manager.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_octree_generation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_stack_ops.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/compute_weights.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/interp_features.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/model/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/model/field_evaluation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/model/model_api.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/config.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/backend_tensor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/centered_grid.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/continue_epoch.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/custom_segmentation_functions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/dual_contouring_data.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/dual_contouring_mesh.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/encoders/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/encoders/converters.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/engine_grid.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/exported_fields.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/exported_structs.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/finite_fault.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/generic_grid.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/geophysics_input.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/input_data_descriptor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/internal_structs.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/interp_output.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/interpolation_functions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/interpolation_input.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/faults.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/kernel_functions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/orientations.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/server/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/server/input_parser.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/solvers.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/kernel_classes/surface_points.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/matrices_sizes.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/micro_points.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/octree_level.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/evaluation_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/interpolation_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/kernel_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/micro_anisotropic_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/options/temp_interpolation_values.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/output/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/output/blocks_value_type.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/raw_arrays_solution.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/regular_grid.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/scalar_field_output.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/solutions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/stack_relation_type.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/stacks_structure.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/tensors_structure.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/data/transforms.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/exceptions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/core/utils.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/dev_notes.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/activator/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/activator/_soft_segment.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/activator/activator_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/activator/torch_activation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/activator/unit_classification.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/data_preprocess/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/data_preprocess/_input_preparation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/data_preprocess/data_preprocess_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/data_preprocess/micro_points.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/QEF_SYSTEM.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_apply_vertex_overlap_logic.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_aux.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_extent_capping.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_find_vertex_overlap.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_gen_vertices.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_gen_vertices_legacy.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_scalar_crossing.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_support_report.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_weighted_qef_setup.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/_weighted_qef_sutup_opt.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/apply_mesh_modifications.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/dual_contouring_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/dual_contouring_v2.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/fancy_triangulation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_cell_branches.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_cell_complex.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_contact_relations.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_edge_decisions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_field_queries.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_lattice.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_ownership.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_separator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/joint_triangle_plan.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/overlapping.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/quad_triangulation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/dual_contouring/weighted_qef_setup_multicore.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/evaluator/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/evaluator/generic_evaluator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/evaluator/micro_anisotropic_evaluator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/evaluator/micro_correction.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/evaluator/symbolic_evaluator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/faults/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/faults/finite_faults.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/README.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/fw_gravity.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/fw_magnetic.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/gravity_gradient.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/magnetic_gradient.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/geophysics/magnetics_implementation.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_b_vector_assembler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_covariance_assembler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_internalDistancesMatrices.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_kernel_constructors.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_kernel_selectors.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_kernels_assembler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_pykeops_cov_compiler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_structs.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_test_assembler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_utils.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/_vectors_preparation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/drift_design.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/execution_mode.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/kernel_constructor/kernel_constructor_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/README.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/_curvature_analysis.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/_neighbor_closure.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/_octree_common.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/_octree_internals.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/octrees_topology/octrees_topology_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_numpy_solvers.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/_conjugate_gradient.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/_kernel_solve_autograd.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/_kernel_solver_from_lazy_tensor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/_nystrom.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/cg.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/custom_pykeops_solver.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_pykeops_solvers/incomplete_cholesky.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/_torch_solvers.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/fault_drift_stabilization.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/interpolation_solver.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/linear_system_transform.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/solver/solver_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/topology/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/topology/topology _interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/weights_cache/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/weights_cache/weight_cache_policy.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/modules/weights_cache/weights_cache_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/optional_dependencies.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/plugins/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/plugins/plotting/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/plugins/plotting/helper_functions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/plugins/plotting/helper_functions_pyvista.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/SOURCES.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/dependency_links.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/requires.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/scm_file_list.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine.egg-info/top_level.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/pyproject.toml +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/requirements/dev-requirements.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/requirements/optional-requirements.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/requirements/requirements.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/requirements/server-requirements.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/setup.cfg +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/setup.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/test.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/test.le +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_tensor_flow/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_tensor_flow/test_backend_tensor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_tensor_flow/test_tensorflow.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_tensor_flow/test_tf.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_test_large_data/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/SKIP_test_large_data/plot_scipy.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/NoOptsFewInput_8f0c757cc42cb56628256f233c1f66523a634aa1_20221014_121041_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/NoOptsMidInput_bd95d1107e2c3779eb123cd694479ea62bd111a9_20221014_122235_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt1FewInput_1f1b37c12217371ea50b4e1cb46fc464049d14a7_20221015_120122_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt1MidInput_67ff73c1220d60ab1b284243a043aa6b73d4ee00_20221014_202857_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt2FewInputOctLvl3_1bf3c987df2b548a2edfc18b5f283f0acf466df7_20221015_150147_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt2FewInputOctLvl5_f9f08e62a3aa03c3d2089fb55b3ed4bcc1c46f15_20221016_104901_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt2FewInputOctLvl6_865d9d22d7eb360de24c4dcc101106383e2ea6ec_20221016_124647_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt2MidInputOctLvl3_1bf3c987df2b548a2edfc18b5f283f0acf466df7_20221015_150632_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt3FewInputOctLvl5_865d9d22d7eb360de24c4dcc101106383e2ea6ec_20221016_124154_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/.benchmarks/Linux-CPython-3.10-64bit/Opt3FewInputOctLvl6_865d9d22d7eb360de24c4dcc101106383e2ea6ec_20221016_124502_uncommited-changes.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/README.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/model7_backend_benchmark.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/one_fault_model.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/profile_runner.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/benchmark/test_benchmark_one_feature.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/conftest.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/data/Moureze_Points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/complex_geometries.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/graben_data/Tutorial_ch1-9a_Fault_relations_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/graben_data/Tutorial_ch1-9a_Fault_relations_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/graben_data/Tutorial_ch1-9a_Finite_Fault_relations_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/graben_data/Tutorial_ch1-9b_Fault_relations_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/graben_data/Tutorial_ch1-9b_Fault_relations_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/grids.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/heavy_models.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/model7_combination.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/05_toy_fold_unconformity_interfaces.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/05_toy_fold_unconformity_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/fixture_model_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/fixture_model_surfaces.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model1_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model1_orientations_scaled.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model1_scaled.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model1_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model1_surface_points_scaled.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model2_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model2_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model3_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model3_orientations_scaled.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model3_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model3_surface_points_scaled-2.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model4_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model4_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model5_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model5_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model6_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model6_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model7_orientations.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries/model7_surface_points.csv +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_geometries.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/fixtures/simple_models.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/pytest.ini +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_concurrent_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/finite_fault_uv_design.md +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_faults_graben.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_api.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_integration.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_splines.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_uv.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_finite_fault_uv_map_plots.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_faults/test_one_fault.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_input_validation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_micro_points_integration.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_output_to_subsurface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_graben_fault_model.Graben.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_graben_fault_model.Graben.received.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_graben_fault_model_independent.Graben Independent.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_graben_fault_model_independent.Graben Independent.received.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_public_interface_simplest_model.simplest_model.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_public_interface.test_public_interface_simplest_model.simplest_model.received.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_api/test_stack_options_override.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_core/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_core/test_data_classes.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_core/test_finite_fault.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_external_functions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_interpolate_model.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_kernels.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_multi_fields.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_multi_fields_dual_contouring.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_multiple_grids.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_integrations/test_options.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/cartesian_selector.pickle +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/cov.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/cov_grad.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/cov_grad_sp.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/cov_sp.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/distance_matrices.pickle +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/drift.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/gx.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/gy.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/gz.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/test_activator.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/test_kernel_numeric2.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/test_octree_leaf.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/solutions/zx.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_activator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_activator_fns.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_backend_tensor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_dual.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_dual_II.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_evaluator/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_evaluator/micro_reference.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_evaluator/test_micro_anisotropic_evaluator.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_evaluator/test_micro_anisotropic_macro_integration.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_exporter.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_extent_capping.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_extent_capping_integration.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_fault_bank_sampler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_fault_drift_sampler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_field_evaluation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_flat_keops_stacking.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_fused_corner_evaluation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_geophysics.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_gravity_benchmark.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_grid_zero_handling.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_cell_complex.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_fault_banks.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_fault_topology.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_modules.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_joint_topology.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/TestPykeopsNumPyEqual.test_distance_matrices.dif_ref_ref.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/one_fault_test_data.npy +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_drift_diagnostics.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_constructor.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_constructor.test_b_vector..approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_constructor.test_b_vector.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_constructor.test_covariance_cubic_kernel.axis=1.approved.txt +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_constructor_2.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_kernel_faults.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_nugget_propagation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_kernel_constructor/test_universal.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_magnetic_benchmark.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_magnetic_benchmark_II.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_neighbor_closure.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_octree_optimizations.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_octrees.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_quad_triangulation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_scalar_crossing.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_solvers/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_solvers/test_fault_drift_stabilization.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_solvers/test_interpolation_solver_routing.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_solvers/test_preconditioners.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_solvers/test_solver.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_stacked_kernel_dimensions.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_topology.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_weight_caching.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_modules/test_weighted_qef.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_prototyping/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_common/test_prototyping/test_broadcasting.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_dependencies/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_dependencies/pykeops_test_compiler.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_dependencies/test_pykeops.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_installation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_pytorch/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_pytorch/test_pytorch_gradients.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_pytorch/test_pytorch_installation.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/2features.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/2features_inclined.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/__init__.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/example.json +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/example.mle +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_server/tests_server_I.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/test_verify_helper.py +0 -0
- {gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/tests/verify_helper.py +0 -0
|
@@ -163,8 +163,11 @@ surface, because that surface supplies the projection isovalue.
|
|
|
163
163
|
The engine privately enables scalar gradients for finite-fault stacks without
|
|
164
164
|
changing the caller's global or per-stack options. The fault scalar field,
|
|
165
165
|
full-length gradients, and surface isovalue are used to project all evaluation
|
|
166
|
-
coordinates. A fixed local frame is taken from the
|
|
167
|
-
the configured center.
|
|
166
|
+
coordinates. A fixed local frame is taken from the fault's own surface point
|
|
167
|
+
whose projection lies nearest the configured center. Surface points do not
|
|
168
|
+
depend on the grid, so every octree level uses the same frame (and the same
|
|
169
|
+
drift); only when no surface points are evaluated does it fall back to the
|
|
170
|
+
nearest valid grid point. The resulting slip multiplier tapers the stored fault
|
|
168
171
|
drift before dependent stacks read it.
|
|
169
172
|
|
|
170
173
|
In flat-stack mode, finite-fault stacks are isolated into singleton chunks and
|
|
@@ -177,8 +180,9 @@ because their floating-point reduction orders are different.
|
|
|
177
180
|
`pretty` and `joint_contacts` support finite faults. `joint_contacts` samples new
|
|
178
181
|
points with the fixed-weight production-drift sampler, which rebuilds the
|
|
179
182
|
tapered drift: the fault scalar and gradient at each query point give its
|
|
180
|
-
projection, and the slip frame normal is frozen from production
|
|
181
|
-
|
|
183
|
+
projection, and the slip frame normal is frozen from production. Production
|
|
184
|
+
takes it from the fault's surface points, so it agrees across octree levels on
|
|
185
|
+
curved faults too; a disagreement still raises `unsupported_finite_fault_frame`. Gradients follow
|
|
182
186
|
production, which ignores the drift's own gradient, as `pretty` does. The same
|
|
183
187
|
sampler backs `prepare_field_evaluator`; with `fault_sides`, a finite fault's
|
|
184
188
|
side plateau is scaled by its taper.
|
|
@@ -9,7 +9,7 @@ import copy
|
|
|
9
9
|
|
|
10
10
|
import numpy as np
|
|
11
11
|
|
|
12
|
-
from ..interp_single._aux_faults_ops import _modify_faults_values_output, finite_fault_taper
|
|
12
|
+
from ..interp_single._aux_faults_ops import _modify_faults_values_output, finite_fault_frame_indices, finite_fault_taper
|
|
13
13
|
from ..interp_single._interp_scalar_field import _evaluate_sys_eq
|
|
14
14
|
from .fixed_weight_snapshots import (check_fixed_query_contract, check_fixed_weight_backend, fault_matrix,
|
|
15
15
|
fixed_weight_snapshots, freeze_arrays, host)
|
|
@@ -39,6 +39,8 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
39
39
|
faults every stack is a plain fixed-weight evaluation.
|
|
40
40
|
``query_sides(points, stacks, sides)`` instead fixes each fault's drift to
|
|
41
41
|
the plateau of one side per point (see its docstring).
|
|
42
|
+
Non-fault stacks with external callbacks (e.g. mesh-field null space) are
|
|
43
|
+
evaluated by their callbacks with no drift, exactly as production does.
|
|
42
44
|
"""
|
|
43
45
|
check_fixed_weight_backend()
|
|
44
46
|
stacks = descriptor.stack_structure
|
|
@@ -51,14 +53,19 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
51
53
|
raise ValueError('unsupported_fault_relations: only independent fault -> affected edges allowed')
|
|
52
54
|
if stacks.segmentation_function is not None:
|
|
53
55
|
raise NotImplementedError('unsupported_fault_segmentation_function: production slope must be a constant')
|
|
54
|
-
fault_inputs = check_fixed_query_contract(stacks, interpolation_input, octree_list, allow_finite_faults=True
|
|
56
|
+
fault_inputs = check_fixed_query_contract(stacks, interpolation_input, octree_list, allow_finite_faults=True,
|
|
57
|
+
allow_external_stacks=True)
|
|
58
|
+
external = {s: callback for s, callback in enumerate(stacks.interp_functions_per_stack or ())
|
|
59
|
+
if callback is not None}
|
|
55
60
|
last = octree_list[-1]
|
|
56
61
|
for fault_stack in faults:
|
|
57
62
|
if host(last.outputs[fault_stack].scalar_field_at_sp).size != 1:
|
|
58
63
|
raise ValueError('unsupported_fault_surfaces: one fault surface per fault stack required')
|
|
59
64
|
snapshots, fingerprints, private_input, grid_size = fixed_weight_snapshots(
|
|
60
|
-
descriptor, interpolation_input, options, octree_list, faults, fault_inputs)
|
|
61
|
-
|
|
65
|
+
descriptor, interpolation_input, options, octree_list, faults, fault_inputs, tuple(external))
|
|
66
|
+
# Production never adds fault drift to an external callback's field.
|
|
67
|
+
affected_by = {s: () if s in external else tuple(int(f) for f in np.flatnonzero(matrix[:, s]))
|
|
68
|
+
for s in range(n_stacks)}
|
|
62
69
|
backend = (BT.engine_backend, BT.dtype, BT.use_gpu, BT.use_pykeops, BT.COMPUTE_GRADS)
|
|
63
70
|
on_device = BT.engine_backend is not AvailableBackends.numpy
|
|
64
71
|
|
|
@@ -67,14 +74,30 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
67
74
|
return BT.t.array(np.ascontiguousarray(values), dtype=BT.dtype_obj) if on_device else np.asarray(values, dtype=BT.dtype)
|
|
68
75
|
|
|
69
76
|
# Frozen host weights stay the inspected snapshot; evaluation uses a device copy.
|
|
70
|
-
device_weights = [device(
|
|
77
|
+
device_weights = [None if snapshot is None else device(snapshot[1]) for snapshot in snapshots]
|
|
71
78
|
scalar_options = []
|
|
72
|
-
for
|
|
73
|
-
scalar_only = copy.deepcopy(
|
|
74
|
-
scalar_only
|
|
79
|
+
for snapshot in snapshots:
|
|
80
|
+
scalar_only = None if snapshot is None else copy.deepcopy(snapshot[2])
|
|
81
|
+
if scalar_only is not None:
|
|
82
|
+
scalar_only.evaluation_options.compute_scalar_gradient = False
|
|
75
83
|
scalar_options.append(scalar_only)
|
|
76
84
|
|
|
85
|
+
def evaluate_external(stack_index, points, gradients):
|
|
86
|
+
callback = external[stack_index]
|
|
87
|
+
functions = (callback.implicit_function,) + (
|
|
88
|
+
(callback.gx_function, callback.gy_function, callback.gz_function) if gradients else ())
|
|
89
|
+
if any(function is None for function in functions):
|
|
90
|
+
raise ValueError(f'unsupported_external_fault_callback: stack {stack_index} needs gradient callbacks')
|
|
91
|
+
xyz = device(points)
|
|
92
|
+
fields = [np.array(host(BT.t.array(function(xyz), dtype=BT.dtype)), dtype=np.float64).reshape(-1)
|
|
93
|
+
for function in functions]
|
|
94
|
+
if any(field.shape != (len(points),) or not np.isfinite(field).all() for field in fields):
|
|
95
|
+
raise ValueError('nonfinite_or_invalid_fault_query')
|
|
96
|
+
return fields[0], (np.stack(fields[1:], axis=-1) if gradients else None)
|
|
97
|
+
|
|
77
98
|
def evaluate_stack(stack_index, points, drift_rows=None, gradients=True):
|
|
99
|
+
if stack_index in external:
|
|
100
|
+
return evaluate_external(stack_index, points, gradients)
|
|
78
101
|
original, _, stack_options = snapshots[stack_index]
|
|
79
102
|
if not gradients:
|
|
80
103
|
stack_options = scalar_options[stack_index]
|
|
@@ -178,9 +201,12 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
178
201
|
# Stacked KeOps evaluation (as in FLAT stacks): one block-sparse reduction per
|
|
179
202
|
# kind for stacks with identical kernel options and drift-row counts.
|
|
180
203
|
kind_options = {kind: [] for kind in ('scalar', 'gradient')}
|
|
181
|
-
for
|
|
204
|
+
for snapshot in snapshots:
|
|
182
205
|
for kind, flags in (('scalar', (True, False)), ('gradient', (False, True))):
|
|
183
|
-
|
|
206
|
+
if snapshot is None:
|
|
207
|
+
kind_options[kind].append(None)
|
|
208
|
+
continue
|
|
209
|
+
stacked = copy.deepcopy(snapshot[2])
|
|
184
210
|
stacked.evaluation_options.compute_scalar, stacked.evaluation_options.compute_scalar_gradient = flags
|
|
185
211
|
kind_options[kind].append(stacked)
|
|
186
212
|
|
|
@@ -192,7 +218,9 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
192
218
|
groups = {}
|
|
193
219
|
for i in pending:
|
|
194
220
|
stack, points, rows = items[i]
|
|
195
|
-
|
|
221
|
+
# External stacks never stack: a unique signature sends them to evaluate_stack.
|
|
222
|
+
signature = (('external', i) if stack in external else
|
|
223
|
+
(repr(snapshots[stack][2].kernel_options), 0 if rows is None else len(rows)))
|
|
196
224
|
groups.setdefault(signature, []).append(i)
|
|
197
225
|
pending = []
|
|
198
226
|
for members in groups.values():
|
|
@@ -364,6 +392,7 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
364
392
|
cache_fingerprints=tuple(fingerprints), drift='production_soft_segmentation',
|
|
365
393
|
drift_rebuild_max_error=tuple(drift_errors),
|
|
366
394
|
finite_fault_stacks=tuple(sorted(finite_faults)),
|
|
395
|
+
external_stacks=tuple(sorted(external)),
|
|
367
396
|
reference_grid_size=grid_size, surface_level=len(octree_list) - 1,
|
|
368
397
|
field_contract='raw_stack_values_and_actual_kernel_gradients'))
|
|
369
398
|
|
|
@@ -371,8 +400,9 @@ def prepare_fault_drift_sampler(descriptor, interpolation_input, options, octree
|
|
|
371
400
|
def _finite_slip_frame(fault_input, octree_list, fault_stack, private_input):
|
|
372
401
|
"""``(finite fault, isovalue, frozen slip-frame normal)`` of a finite fault stack, else None.
|
|
373
402
|
|
|
374
|
-
Production picks the frame normal on each surface level's
|
|
375
|
-
|
|
403
|
+
Production picks the frame normal on each surface level from the fault's
|
|
404
|
+
surface points, so every level normally agrees; the drift is rebuilt from
|
|
405
|
+
one frame, so a level that disagrees is still rejected.
|
|
376
406
|
"""
|
|
377
407
|
if fault_input is None or not fault_input.finite_fault_defined:
|
|
378
408
|
return None
|
|
@@ -389,7 +419,7 @@ def _finite_slip_frame(fault_input, octree_list, fault_stack, private_input):
|
|
|
389
419
|
_, normal = finite_fault_taper(
|
|
390
420
|
fault_input.finite_fault, xyz, np.asarray(host(fields.scalar_field_everywhere), dtype=np.float64),
|
|
391
421
|
tuple(np.asarray(host(g), dtype=np.float64) for g in gradients), isovalue,
|
|
392
|
-
|
|
422
|
+
frame_indices=finite_fault_frame_indices(fields, fields._macro_reference_size or len(xyz)))
|
|
393
423
|
normals.append(np.asarray(normal, dtype=np.float64))
|
|
394
424
|
units = np.array([n / np.linalg.norm(n) for n in normals])
|
|
395
425
|
if not np.allclose(units, units[-1], rtol=0, atol=precision_tolerance(1e-10, BT.dtype)):
|
|
@@ -61,11 +61,14 @@ def fault_matrix(stacks):
|
|
|
61
61
|
return matrix.astype(bool)
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
def check_fixed_query_contract(stacks, interpolation_input, octree_list, allow_finite_faults=False
|
|
64
|
+
def check_fixed_query_contract(stacks, interpolation_input, octree_list, allow_finite_faults=False,
|
|
65
|
+
allow_external_stacks=False):
|
|
65
66
|
"""Shared fixed-weight query preconditions; returns per-stack fault inputs.
|
|
66
67
|
|
|
67
68
|
Finite faults are accepted only with ``allow_finite_faults`` (production
|
|
68
|
-
drift queries); fault banks require infinite faults.
|
|
69
|
+
drift queries); fault banks require infinite faults. ``allow_external_stacks``
|
|
70
|
+
(production drift queries) accepts non-fault stacks with external callbacks,
|
|
71
|
+
which production evaluates without fault drift, null space and stack grid subsets.
|
|
69
72
|
"""
|
|
70
73
|
n_stacks = stacks.n_stacks
|
|
71
74
|
if stacks.faults_input_data is not None and (
|
|
@@ -83,12 +86,16 @@ def check_fixed_query_contract(stacks, interpolation_input, octree_list, allow_f
|
|
|
83
86
|
raise ValueError('unsupported_external_fault_data')
|
|
84
87
|
if interpolation_input.micro_points is not None or interpolation_input.evaluation_micro_points is not None:
|
|
85
88
|
raise NotImplementedError('unsupported_fault_micro_correction: fixed reference state required')
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
callbacks = stacks.interp_functions_per_stack or [None] * n_stacks
|
|
90
|
+
if not allow_external_stacks and any(callback is not None for callback in callbacks):
|
|
88
91
|
raise NotImplementedError('unsupported_external_fault_callback: explicit bank-aware contract required')
|
|
89
|
-
if
|
|
92
|
+
if any(callback is not None and relation is StackRelationType.FAULT
|
|
93
|
+
for callback, relation in zip(callbacks, stacks.masking_descriptor)):
|
|
94
|
+
raise NotImplementedError('unsupported_external_fault_callback: fault stacks must be interpolated')
|
|
95
|
+
if not allow_external_stacks and StackRelationType.NULL_SPACE in stacks.masking_descriptor:
|
|
90
96
|
raise NotImplementedError('unsupported_fault_null_space')
|
|
91
|
-
if stacks.ignored_grid_types_per_stack is not None
|
|
97
|
+
if (not allow_external_stacks and stacks.ignored_grid_types_per_stack is not None
|
|
98
|
+
and any(stacks.ignored_grid_types_per_stack)):
|
|
92
99
|
raise NotImplementedError('unsupported_fault_stack_grid_subset')
|
|
93
100
|
if not octree_list or any(len(level.outputs) != n_stacks for level in octree_list):
|
|
94
101
|
raise ValueError('invalid_fault_octree_outputs')
|
|
@@ -146,9 +153,12 @@ def _cache_live(stack_options, stack_index):
|
|
|
146
153
|
and WeightCache.load_weights(f'{stack_options.cache_model_name}.{stack_index}', False) is not None)
|
|
147
154
|
|
|
148
155
|
|
|
149
|
-
def fixed_weight_snapshots(descriptor, interpolation_input, options, octree_list, fault_stacks, fault_inputs
|
|
156
|
+
def fixed_weight_snapshots(descriptor, interpolation_input, options, octree_list, fault_stacks, fault_inputs,
|
|
157
|
+
external_stacks=()):
|
|
150
158
|
"""Frozen (solver_input, weights, options) per stack, from the outputs' production weights.
|
|
151
159
|
|
|
160
|
+
``external_stacks`` have no weights (external callbacks); their snapshot is None.
|
|
161
|
+
|
|
152
162
|
Production fault drift for every stack in ``fault_stacks`` is rebuilt on the
|
|
153
163
|
last surface level's reference grid, exactly as the production solve saw it.
|
|
154
164
|
Returns ``(snapshots, fingerprints, private_input, reference_grid_size)``.
|
|
@@ -177,6 +187,10 @@ def fixed_weight_snapshots(descriptor, interpolation_input, options, octree_list
|
|
|
177
187
|
backend_block = block if BT.engine_backend is AvailableBackends.numpy else BT.t.array(block, dtype=BT.dtype_obj)
|
|
178
188
|
snapshots, fingerprints = [], []
|
|
179
189
|
for stack_index in range(n_stacks):
|
|
190
|
+
if stack_index in external_stacks:
|
|
191
|
+
snapshots.append(None)
|
|
192
|
+
fingerprints.append(None)
|
|
193
|
+
continue
|
|
180
194
|
private_stacks.stack_number = stack_index
|
|
181
195
|
subset = InterpolationInput.from_interpolation_input_subset(private_input, private_stacks)
|
|
182
196
|
subset.fault_values = _grab_stack_fault_data(backend_block, subset, private_stacks, grid_size)
|
|
@@ -105,9 +105,15 @@ def _check_joint_options(descriptor, options):
|
|
|
105
105
|
if evaluation.mesh_extraction_masking_options != MeshExtractionMaskingOptions.INTERSECT:
|
|
106
106
|
raise ValueError("joint only supports INTERSECT mesh masking")
|
|
107
107
|
stacks = descriptor.stack_structure
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
for stack_index, relation in enumerate(stacks.masking_descriptor):
|
|
109
|
+
ignored = () if stacks.ignored_grid_types_per_stack is None else stacks.ignored_grid_types_per_stack[stack_index]
|
|
110
|
+
if relation is StackRelationType.NULL_SPACE and {"octree_grid", "corners_grid"} & set(ignored or ()):
|
|
111
|
+
raise NotImplementedError("joint null-space stacks ignoring the octree/corners grid are unsupported")
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _topology_relations(relations):
|
|
115
|
+
"""Null space masks like erosion and exports no mesh, so its boundary only truncates."""
|
|
116
|
+
return [StackRelationType.ERODE if r is StackRelationType.NULL_SPACE else r for r in relations]
|
|
111
117
|
|
|
112
118
|
|
|
113
119
|
def _has_faults(descriptor, interpolation_input):
|
|
@@ -233,8 +239,9 @@ def extract_joint_octree(descriptor, interpolation_input, options, octree_list):
|
|
|
233
239
|
|
|
234
240
|
result = extract_adaptive_topology(
|
|
235
241
|
origins, spans, domain_shape, extent, samples, surface_to_stack, surface_indices,
|
|
236
|
-
relations, isovalues, sample_fields=sample_fields, ownership=None,
|
|
237
|
-
|
|
242
|
+
_topology_relations(relations), isovalues, sample_fields=sample_fields, ownership=None,
|
|
243
|
+
include_reference=False)
|
|
244
|
+
return _meshes_from_result(result, metadata, result["diagnostics"], relations)
|
|
238
245
|
|
|
239
246
|
|
|
240
247
|
def extract_fault_merge_octree(descriptor, interpolation_input, options, octree_list):
|
|
@@ -275,32 +282,38 @@ def extract_fault_merge_octree(descriptor, interpolation_input, options, octree_
|
|
|
275
282
|
def sample_fields(points):
|
|
276
283
|
raise ValueError("unexpected_full_field_query: joint_contacts uses targeted field queries")
|
|
277
284
|
|
|
278
|
-
|
|
285
|
+
topology_relations = _topology_relations(relations)
|
|
286
|
+
_, fault_pairs, _ = build_contact_relations(groups, indices, topology_relations, matrix, levels)
|
|
279
287
|
fault_merge = {int(i): set() for i, g in enumerate(groups) if relations[g] is StackRelationType.FAULT}
|
|
280
288
|
for c, t in fault_pairs:
|
|
281
289
|
if c not in fault_merge:
|
|
282
290
|
raise ValueError("unsupported_fault_metadata: fault relation from a non-fault stack")
|
|
283
291
|
fault_merge[c].add(int(t))
|
|
284
292
|
result = extract_adaptive_topology(
|
|
285
|
-
origins, spans, domain_shape, extent, samples, groups, indices,
|
|
293
|
+
origins, spans, domain_shape, extent, samples, groups, indices, topology_relations, levels,
|
|
286
294
|
sample_fields=sample_fields, field_query=field_query, faults_relations=matrix, fault_merge=fault_merge,
|
|
287
295
|
cell_complex=build_adaptive_complex(origins, spans, domain_shape))
|
|
288
296
|
report = dict(result["diagnostics"], interface="pretty_fault_vertex_merge_single_fault_mesh",
|
|
289
297
|
sampler=sampler.get("diagnostics", {}), no_uniform_fallback=True,
|
|
290
298
|
no_post_reconciliation=True)
|
|
291
|
-
return _meshes_from_result(result, metadata, report)
|
|
299
|
+
return _meshes_from_result(result, metadata, report, relations)
|
|
292
300
|
|
|
293
301
|
|
|
294
|
-
def _meshes_from_result(result, metadata, report):
|
|
295
|
-
"""One ``DualContouringMesh`` per exported surface from a shared-vertex extraction result.
|
|
302
|
+
def _meshes_from_result(result, metadata, report, relations=()):
|
|
303
|
+
"""One ``DualContouringMesh`` per exported surface from a shared-vertex extraction result.
|
|
304
|
+
|
|
305
|
+
Null-space surfaces are extracted (they truncate others) but, as in pretty, not returned.
|
|
306
|
+
"""
|
|
296
307
|
vertices = np.asarray(result["vertices"], dtype=np.float64).reshape(-1, 3)
|
|
297
308
|
meshes = []
|
|
298
309
|
for exported, (stack, surface, isovalue) in enumerate(metadata):
|
|
310
|
+
if stack < len(relations) and relations[stack] is StackRelationType.NULL_SPACE:
|
|
311
|
+
continue
|
|
299
312
|
faces = np.asarray(result["faces"][exported], dtype=np.int64).reshape(-1, 3)
|
|
300
313
|
ids, inverse = np.unique(faces, return_inverse=True)
|
|
301
314
|
mesh = DualContouringMesh(
|
|
302
315
|
vertices=vertices[ids].copy(), edges=inverse.reshape(-1, 3), stack_index=stack,
|
|
303
|
-
surface_index=surface, exported_surface_index=
|
|
316
|
+
surface_index=surface, exported_surface_index=len(meshes), isovalue=isovalue,
|
|
304
317
|
contact_report=report)
|
|
305
318
|
mesh.joint_vertex_ids = ids
|
|
306
319
|
mesh.joint_vertex_keys = [result["vertex_keys"][i] for i in ids]
|
|
@@ -59,7 +59,7 @@ def _modify_faults_values_output(
|
|
|
59
59
|
scalar_field_values=np.asarray(to_numpy(exported_fields.scalar_field_everywhere)),
|
|
60
60
|
gradient_fields=tuple(np.asarray(to_numpy(gradient)) for gradient in gradients),
|
|
61
61
|
target_scalar_value=float(target_values[0]),
|
|
62
|
-
|
|
62
|
+
frame_indices=finite_fault_frame_indices(exported_fields, reference_size),
|
|
63
63
|
)
|
|
64
64
|
if isinstance(shifted_vals, np.ndarray):
|
|
65
65
|
finite_fault_scalar = finite_fault_scalar_np.astype(shifted_vals.dtype, copy=False)
|
|
@@ -73,13 +73,29 @@ def _modify_faults_values_output(
|
|
|
73
73
|
return shifted_vals * finite_fault_scalar
|
|
74
74
|
|
|
75
75
|
|
|
76
|
+
def finite_fault_frame_indices(exported_fields, reference_size: int) -> np.ndarray:
|
|
77
|
+
"""Indices of the points that may set a finite fault's slip frame.
|
|
78
|
+
|
|
79
|
+
These are the fault's own surface points: they do not depend on the grid,
|
|
80
|
+
so every octree level picks the same frame. Without surface points in the
|
|
81
|
+
evaluated points, the whole reference set (grid included) is used.
|
|
82
|
+
"""
|
|
83
|
+
grid_size = exported_fields._grid_size
|
|
84
|
+
if grid_size is not None and grid_size < reference_size:
|
|
85
|
+
sp_indices = np.arange(grid_size, reference_size)[exported_fields.slice_feature or slice(None)]
|
|
86
|
+
if len(sp_indices):
|
|
87
|
+
return sp_indices
|
|
88
|
+
return np.arange(reference_size)
|
|
89
|
+
|
|
90
|
+
|
|
76
91
|
def finite_fault_taper(finite_fault, points, scalar_field_values, gradient_fields, target_scalar_value,
|
|
77
|
-
|
|
92
|
+
frame_indices=None, normal=None):
|
|
78
93
|
"""Slip multiplier of ``points`` (host NumPy) and the slip-frame normal used.
|
|
79
94
|
|
|
80
95
|
Points are projected onto the fault surface with their own scalar and
|
|
81
|
-
gradient. Without ``normal`` the frame normal is the gradient at the
|
|
82
|
-
``
|
|
96
|
+
gradient. Without ``normal`` the frame normal is the gradient at the
|
|
97
|
+
``frame_indices`` point (default: all points) whose projection lies
|
|
98
|
+
nearest the fault center.
|
|
83
99
|
"""
|
|
84
100
|
projected_points = project_points_onto_surface(
|
|
85
101
|
points=points,
|
|
@@ -88,14 +104,14 @@ def finite_fault_taper(finite_fault, points, scalar_field_values, gradient_field
|
|
|
88
104
|
target_scalar_value=target_scalar_value,
|
|
89
105
|
)
|
|
90
106
|
if normal is None:
|
|
91
|
-
|
|
92
|
-
gradient_matrix = np.stack(gradient_fields, axis=-1)
|
|
93
|
-
valid_gradient = np.linalg.norm(gradient_matrix
|
|
107
|
+
frame_indices = np.arange(len(points)) if frame_indices is None else np.asarray(frame_indices)
|
|
108
|
+
gradient_matrix = np.stack(gradient_fields, axis=-1)[frame_indices]
|
|
109
|
+
valid_gradient = np.linalg.norm(gradient_matrix, axis=1) > 1e-12
|
|
94
110
|
if not np.any(valid_gradient):
|
|
95
111
|
raise ValueError("Cannot determine finite-fault frame from near-zero gradients")
|
|
96
112
|
|
|
97
113
|
center = np.asarray(finite_fault.center)
|
|
98
|
-
distances_to_center = np.linalg.norm(projected_points[
|
|
114
|
+
distances_to_center = np.linalg.norm(projected_points[frame_indices] - center, axis=1)
|
|
99
115
|
center_index = np.argmin(np.where(valid_gradient, distances_to_center, np.inf))
|
|
100
116
|
normal = gradient_matrix[center_index]
|
|
101
117
|
return finite_fault.calculate_slip(points=projected_points, normal=normal), normal
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2026.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (2026, 2, 0, '
|
|
21
|
+
__version__ = version = '2026.2.0a3'
|
|
22
|
+
__version_tuple__ = version_tuple = (2026, 2, 0, 'a3')
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g8a355b9ca'
|
|
@@ -231,3 +231,12 @@ def test_finite_fault_flat_stack_matches_serial(one_fault_model, monkeypatch):
|
|
|
231
231
|
assert np.allclose(flat_dependent, serial_dependent, atol=5e-3, rtol=1e-2)
|
|
232
232
|
assert flat.octrees_output[0].outputs[0].exported_fields.gx_field is not None
|
|
233
233
|
assert options.evaluation_options.compute_scalar_gradient is False
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def test_finite_fault_frame_uses_the_fault_surface_points():
|
|
237
|
+
from gempy_engine.API.interp_single._aux_faults_ops import finite_fault_frame_indices
|
|
238
|
+
|
|
239
|
+
fields = ExportedFields(_scalar_field=np.zeros(10), _grid_size=4, _slice_feature=slice(2, 5))
|
|
240
|
+
assert finite_fault_frame_indices(fields, 10).tolist() == [6, 7, 8]
|
|
241
|
+
# Without surface points among the evaluated points the whole reference set is used.
|
|
242
|
+
assert finite_fault_frame_indices(ExportedFields(_scalar_field=np.zeros(3), _grid_size=3), 3).tolist() == [0, 1, 2]
|
|
@@ -424,6 +424,30 @@ def test_model7_finite_fault_contact_vertices_match_pretty_fault_vertices():
|
|
|
424
424
|
assert len(contacts[0].edges) == len(pretty[0].edges)
|
|
425
425
|
|
|
426
426
|
|
|
427
|
+
def test_curved_finite_fault_meshes_across_octree_levels():
|
|
428
|
+
"""The slip frame comes from the fault's surface points, so on a curved
|
|
429
|
+
fault every octree level solves with the same drift."""
|
|
430
|
+
from gempy_engine.API.model.model_api import compute_model
|
|
431
|
+
from gempy_engine.core.data import FiniteFault
|
|
432
|
+
from gempy_engine.core.data.kernel_classes.faults import FaultsData
|
|
433
|
+
from tests.fixtures.complex_geometries import one_fault_model
|
|
434
|
+
|
|
435
|
+
inputs, descriptor, options = one_fault_model.__wrapped__()
|
|
436
|
+
evaluation = options.evaluation_options
|
|
437
|
+
evaluation.number_octree_levels = evaluation.number_octree_levels_surface = 4
|
|
438
|
+
evaluation.mesh_extraction = True
|
|
439
|
+
evaluation.mesh_extraction_overlap = 'joint_contacts'
|
|
440
|
+
center = np.asarray(inputs.surface_points.sp_coords)[:9].mean(axis=0)
|
|
441
|
+
descriptor.stack_structure.faults_input_data = [FaultsData.from_user_input(
|
|
442
|
+
None, FiniteFault(center=tuple(center), strike_radius=1.2, dip_radius=1.)), None, None]
|
|
443
|
+
meshes = compute_model(inputs, options, descriptor).dc_meshes
|
|
444
|
+
assert len(meshes) == 6 and all(len(m.edges) for m in meshes)
|
|
445
|
+
report = meshes[0].contact_report
|
|
446
|
+
assert report['sampler']['finite_fault_stacks'] == (0,)
|
|
447
|
+
assert max(report['sampler']['drift_rebuild_max_error']) <= 1e-10
|
|
448
|
+
assert report['borrowed_vertex_count'] > 0
|
|
449
|
+
|
|
450
|
+
|
|
427
451
|
def test_banked_joint_still_rejects_finite_faults():
|
|
428
452
|
from gempy_engine.API.model.model_api import compute_model
|
|
429
453
|
|
|
@@ -616,3 +640,51 @@ def test_fault_free_production_plane_on_torch_backends(kind, mode):
|
|
|
616
640
|
np.testing.assert_allclose(v0, v1, rtol=0, atol=2e-4)
|
|
617
641
|
|
|
618
642
|
# endregion
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
def _model7_null_space(root, depth, mode, callback_stack_relation=R.NULL_SPACE):
|
|
646
|
+
"""Model 7 with a NULL_SPACE sphere (external SDF) prepended, as the server's mesh fields are."""
|
|
647
|
+
from gempy_engine.core.data.input_data_descriptor import InputDataDescriptor
|
|
648
|
+
from gempy_engine.core.data.interpolation_functions import CustomInterpolationFunctions
|
|
649
|
+
from gempy_engine.core.data.stacks_structure import StacksStructure
|
|
650
|
+
|
|
651
|
+
inputs, options, descriptor = _model7(root, depth, 0, mode)
|
|
652
|
+
extent = np.asarray(inputs.grid.octree_grid.orthogonal_extent, dtype=float)
|
|
653
|
+
low, high = extent[::2], extent[1::2]
|
|
654
|
+
center, radius = (low + high) / 2 + [0., 0., (high - low)[2] / 4], .3 * (high - low).min()
|
|
655
|
+
gradient = lambda k: (lambda xyz: -2 * (xyz[:, k] - center[k]))
|
|
656
|
+
sphere = CustomInterpolationFunctions(np.array([0.]), lambda xyz: radius ** 2 - ((xyz - center) ** 2).sum(1),
|
|
657
|
+
gradient(0), gradient(1), gradient(2))
|
|
658
|
+
stacks = descriptor.stack_structure
|
|
659
|
+
faults = np.zeros((4, 4), dtype=bool)
|
|
660
|
+
faults[1:, 1:] = stacks.faults_relations
|
|
661
|
+
descriptor = InputDataDescriptor(descriptor.tensors_structure, StacksStructure(
|
|
662
|
+
np.r_[0, stacks.number_of_points_per_stack], np.r_[0, stacks.number_of_orientations_per_stack],
|
|
663
|
+
np.r_[0, stacks.number_of_surfaces_per_stack], [callback_stack_relation] + list(stacks.masking_descriptor),
|
|
664
|
+
faults_relations=faults, interp_functions_per_stack=[sphere, None, None, None], null_space_id=-1))
|
|
665
|
+
finest = (high - low).min() / (root * 2 ** (depth - 1))
|
|
666
|
+
return (inputs, options, descriptor), center, radius, finest
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
def test_model7_null_space_mesh_field_truncates_layers():
|
|
670
|
+
from gempy_engine.API.model.model_api import compute_model
|
|
671
|
+
|
|
672
|
+
model, center, radius, finest = _model7_null_space(9, 2, 'joint_contacts')
|
|
673
|
+
meshes = compute_model(*model).dc_meshes
|
|
674
|
+
# The null-space boundary is extracted but, as in pretty, not returned.
|
|
675
|
+
assert [(m.stack_index, m.surface_index, m.exported_surface_index) for m in meshes] == \
|
|
676
|
+
[(1, 0, 0), (2, 0, 1), (3, 0, 2), (3, 1, 3)]
|
|
677
|
+
assert meshes[0].contact_report['sampler']['external_stacks'] == (0,)
|
|
678
|
+
for mesh in meshes[1:]: # Faults are never masked (as in pretty); layers stop on the sphere.
|
|
679
|
+
distance = np.linalg.norm(mesh.vertices - center, axis=1)
|
|
680
|
+
assert distance.min() > radius - 1.5 * finest
|
|
681
|
+
assert np.count_nonzero(np.abs(distance - radius) < .25 * finest)
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
def test_external_fault_stack_still_rejected():
|
|
685
|
+
from gempy_engine.API.model.model_api import compute_model
|
|
686
|
+
|
|
687
|
+
model, *_ = _model7_null_space(9, 2, 'joint_contacts', callback_stack_relation=R.FAULT)
|
|
688
|
+
model[2].stack_structure.faults_relations[0, 1:] = False
|
|
689
|
+
with pytest.raises(NotImplementedError, match='fault stacks must be interpolated'):
|
|
690
|
+
compute_model(*model)
|
|
@@ -164,6 +164,7 @@ def test_joint_guards(monkeypatch, guard):
|
|
|
164
164
|
options.evaluation_options.mesh_extraction_masking_options = MeshExtractionMaskingOptions.RAW
|
|
165
165
|
elif guard == "null":
|
|
166
166
|
descriptor.stack_structure.masking_descriptor[0] = StackRelationType.NULL_SPACE
|
|
167
|
+
descriptor.stack_structure.ignored_grid_types_per_stack = [("octree_grid",)]
|
|
167
168
|
original_grid = inputs.grid
|
|
168
169
|
with pytest.raises((ValueError, NotImplementedError)):
|
|
169
170
|
adapter.extract_joint_octree(descriptor, inputs, options, levels)
|
|
@@ -528,3 +529,34 @@ def test_public_compute_none_joint_ordinary_parity(backend, triangulation, norma
|
|
|
528
529
|
geometries.append((Counter(map(tuple, mesh.vertices)),
|
|
529
530
|
Counter(oriented_triangle(points) for points in mesh.vertices[mesh.edges])))
|
|
530
531
|
assert geometries[0] == geometries[1]
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
@pytest.mark.parametrize("mode", ["joint", "joint_contacts"])
|
|
535
|
+
def test_public_compute_joint_null_space_truncates_without_mesh(mode):
|
|
536
|
+
"""Server mesh-field wiring: a NULL_SPACE sphere (external SDF) above an ordinary stack."""
|
|
537
|
+
from gempy_engine.API.model.model_api import compute_model
|
|
538
|
+
center, radius = np.array([5., 1., 2.5]), 2.
|
|
539
|
+
gradient = lambda k: (lambda xyz: -2 * (xyz[:, k] - center[k]))
|
|
540
|
+
null_space = CustomInterpolationFunctions(
|
|
541
|
+
np.array([0.]), lambda xyz: radius ** 2 - ((xyz - center) ** 2).sum(1),
|
|
542
|
+
gradient(0), gradient(1), gradient(2))
|
|
543
|
+
stacks = StacksStructure(np.array([0, 4]), np.array([0, 2]), np.array([0, 2]),
|
|
544
|
+
[StackRelationType.NULL_SPACE, StackRelationType.BASEMENT],
|
|
545
|
+
interp_functions_per_stack=[null_space, None], null_space_id=-1)
|
|
546
|
+
descriptor = InputDataDescriptor(TensorsStructure(np.array([2, 2])), stacks)
|
|
547
|
+
options = InterpolationOptions.from_args(86.6, 3571.4, uni_degree=0, i_res=4, gi_res=2, number_dimensions=3)
|
|
548
|
+
options.evaluation_options.number_octree_levels = 3
|
|
549
|
+
options.evaluation_options.mesh_extraction_masking_options = MeshExtractionMaskingOptions.INTERSECT
|
|
550
|
+
options.evaluation_options.mesh_extraction_overlap = mode
|
|
551
|
+
inputs = InterpolationInput(
|
|
552
|
+
SurfacePoints(np.array([[2., .5, 2.5], [8., .5, 2.5], [2., .5, 1.], [8., .5, 1.]])),
|
|
553
|
+
Orientations(np.array([[5., 1., 2.5], [5., 1., 1.]]), np.array([[0., 0., 1.], [0., 0., 1.]])),
|
|
554
|
+
EngineGrid(octree_grid=RegularGrid([0, 10., 0, 2., 0, 5.], [8, 2, 8])), np.array([0, 1, 2]))
|
|
555
|
+
solution = compute_model(inputs, options, descriptor)
|
|
556
|
+
assert [(m.stack_index, m.surface_index, m.exported_surface_index) for m in solution.dc_meshes] == \
|
|
557
|
+
[(1, 0, 0), (1, 1, 1)]
|
|
558
|
+
for mesh in solution.dc_meshes:
|
|
559
|
+
distance = np.linalg.norm(mesh.vertices - center, axis=1)
|
|
560
|
+
assert len(mesh.edges) and distance.min() > radius - .05
|
|
561
|
+
# Both surfaces cross the sphere, so each is cut by (and ends on) its boundary.
|
|
562
|
+
assert np.count_nonzero(np.abs(distance - radius) < .05)
|
|
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
|
{gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/dual_contouring/__init__.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
|
{gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gempy_engine-2026.2.0a2 → gempy_engine-2026.2.0a3}/gempy_engine/API/interp_single/_masking_ops.py
RENAMED
|
File without changes
|
|
File without changes
|