Skip to content

Commit df0f450

Browse files
author
Miguel de la Varga
committed
[MINOR] Update test parameters and adjust debug condition in dual contouring code
1 parent 90b98a4 commit df0f450

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gempy_engine/API/dual_contouring/multi_scalar_dual_contouring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def dual_contouring_multi_scalar(
135135

136136
# endregion
137137
# Check for repeated voxels across stacks
138-
if (options.debug or len(all_left_right_codes) > 1) and False:
138+
if (options.debug or len(all_left_right_codes) > 1) and True:
139139
voxel_overlaps = find_repeated_voxels_across_stacks(foo)
140140
if voxel_overlaps and options.debug:
141141
print(f"Found voxel overlaps between stacks: {voxel_overlaps}")

tests/test_common/test_modules/test_dual_II.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
from tests.conftest import plot_pyvista
1010

1111

12-
def test_dual_contouring_on_fault_model(one_fault_model, n_oct_levels=4):
12+
def test_dual_contouring_on_fault_model(one_fault_model, n_oct_levels=5):
1313
interpolation_input: InterpolationInput
1414
structure: InputDataDescriptor
1515
options: InterpolationOptions
1616

1717
interpolation_input, structure, options = one_fault_model
1818

19+
import numpy as np
20+
interpolation_input.surface_points.sp_coords[:, 2] += np.random.uniform(-0.1, 0.1, interpolation_input.surface_points.sp_coords[:, 2].shape)
1921
options.compute_scalar_gradient = False
2022
options.evaluation_options.dual_contouring = True
2123
options.evaluation_options.mesh_extraction_masking_options = MeshExtractionMaskingOptions.INTERSECT

0 commit comments

Comments
 (0)