Skip to content

Commit 3ea808f

Browse files
committed
[TEST/BUG] Fix some leftovers from sp_copy refactoring
[TEST] Moving test_transformed_space to right location
1 parent 9f08dd3 commit 3ea808f

6 files changed

+23
-23
lines changed

gempy/modules/data_manipulation/manipulate_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def modify_surface_points(geo_model: GeoModel,
229229
if elements_names is not None and slice is not None:
230230
raise ValueError("Cannot provide both elements_names and slice.")
231231

232-
surface_points = geo_model.structural_frame.surface_points
232+
surface_points = geo_model.structural_frame.surface_points_copy
233233

234234
if elements_names is not None:
235235
ids = [surface_points.name_id_map[element] for element in elements_names]

test/test_api/test_model_construction_granular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_create_geomodel() -> GeoModel:
115115

116116
def test_structural_frame_surface_points():
117117
structural_frame: StructuralFrame = test_create_structural_frame()
118-
print(structural_frame.surface_points)
118+
print(structural_frame.surface_points_copy)
119119
pass
120120

121121

test/test_model_types/test_example_models_I.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_generate_fold_model():
4141
model = gp.generate_example_model(ExampleModel.ANTICLINE, compute_model=True)
4242
print(model.structural_frame)
4343

44-
if PLOT:
44+
if PLOT or False:
4545
gpv = require_gempy_viewer()
4646
gpv.plot_3d(model, image=True)
4747

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[ 0.00450871 -0.19948116 -0.16716297 -0.22797441 -0.06905766 0.03961302
2-
0.03237328 0.02154703 0.01294598 0.02534665 0.03298457 0.03684644
3-
0.02861988 -0.32649943 -0.26610023 -0.2698196 -0.22336827 -0.05895865
4-
0.03172045 0.06709037 -0.01279676 -0.12918176 0.04585306 0.03890486
5-
0.02646941 0.06360633 0.00644243 0.06466816 0.03048841 0.16156851
6-
0.03451663 0.03565246 0.04440223 0.05586576 0.25968748 0.42353028
7-
0.24432977 0.35362658 0.02129659 0.01593247 0.04206022 0.11838566
8-
0.02599973 0.03410698 0.08555558 0.16121191 0.18931042 0.24366006
9-
0.03460948 0.31260577 0.04628936]
1+
[-0.4578511 -0.31097052 -0.06706945 -0.1181935 -0.17880987 -0.13300206
2+
-0.30734812 -0.21857885 -0.0531351 0.00961668 0.16882058 0.03956262
3+
0.19660312 -0.36707958 -0.18123234 -0.1141875 -0.29058615 -0.09442382
4+
-0.31996751 -0.25901725 -0.07071645 -0.01621694 0.1380689 -0.01673105
5+
0.05471776 -0.10863687 0.00323145 -0.16684994 0.02142849 0.07336643
6+
0.23277571 0.29832564 0.14728613 0.24173298 0.18525067 0.08134208
7+
0.24022379 0.37063668 0.01900449 0.09411546 -0.08664111 0.12158511
8+
0.15784658 0.2779585 0.32940389 0.29281398 0.3442417 0.19222754
9+
0.07449155 0.38552457 0.51725955]
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[-1.4342333 -1.4174644 -1.436558 -1.379011 -1.4547856 -1.2748371
2-
-1.2946347 -1.4333194 -1.3342066 -1.2747066 -1.3302863 -1.44035
3-
-1.2877643 -1.3173586 -1.4163897 -1.4362249 -1.3173658 -1.4220486
4-
-1.2771922 -1.2570589 -1.4239248 -1.4325254 -1.2895172 -1.4301772
5-
-1.4303743 -1.2724016 -1.4537102 -1.3182907 -1.4364374 -1.3788488
6-
-1.4481179 -1.3797903 -1.2909673 -1.4070559 -1.3143357 -1.3101538
7-
-1.320271 -1.3022668 -1.4350955 -1.3777561 -1.3369408 -1.3984544
8-
-1.4153439 -1.4321469 -1.4072198 -1.3017173 -1.4267018 -1.3809292
9-
-1.3111433 -1.273547 -1.2954628]
1+
[-1.43462812 -1.41753542 -1.35815342 -1.41763967 -1.43634395 -1.29810919
2+
-1.32294697 -1.34836879 -1.45212219 -1.32554649 -1.29356797 -1.41482005
3+
-1.32305307 -1.41724231 -1.43616762 -1.4177479 -1.3586763 -1.45932038
4+
-1.32217742 -1.3784232 -1.44308028 -1.46291927 -1.29351129 -1.44988095
5+
-1.44852622 -1.29975516 -1.45542859 -1.43629448 -1.41817695 -1.31661274
6+
-1.41365845 -1.36102168 -1.31523107 -1.3836795 -1.3879193 -1.34177367
7+
-1.33749128 -1.277613 -1.45448202 -1.43636456 -1.33823938 -1.35758386
8+
-1.3789235 -1.42067346 -1.45981446 -1.2953613 -1.42434858 -1.40454413
9+
-1.29496681 -1.27780776 -1.30499016]

test/test_modules/.benchmarks/test_transformed_space.py renamed to test/test_modules/test_transformed_space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_plot_transformed_data_only_transform_input():
2727

2828
gpv.plot_3d(
2929
model,
30-
image=False,
30+
image=True,
3131
transformed_data=True,
3232
show_boundaries=True,
3333
show_lith=True,
@@ -122,7 +122,7 @@ def test_plot_transformed_data_including_grid_transform_octree():
122122

123123
gpv.plot_3d(
124124
model,
125-
image=False,
125+
image=True,
126126
transformed_data=False,
127127
show_boundaries=True,
128128
show_lith=True,

0 commit comments

Comments
 (0)