Skip to content

Commit b0072c3

Browse files
committed
[TEST] Cleaning a bit the test
1 parent 3c7243e commit b0072c3

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

test/test_modules/test_outliers.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def test_outliers_model_1():
2727
gp.map_stack_to_surfaces(
2828
gempy_model=model,
2929
mapping_object={
30-
"Young_Series": ("basin_fill_2", "basin_fill_1"),
31-
"Old_Series": ("basin_top", "basin_bottom")
30+
"Young_Series": ("basin_fill_2", "basin_fill_1"),
31+
"Old_Series" : ("basin_top", "basin_bottom")
3232
}
3333
)
3434

@@ -37,7 +37,12 @@ def test_outliers_model_1():
3737
model.structural_frame.structural_groups[0].structural_relation = StackRelationType.ONLAP
3838

3939
# Compute a solution for the model
40-
gp.compute_model(model)
40+
gp.compute_model(
41+
gempy_model=model,
42+
engine_config=gp.data.GemPyEngineConfig(
43+
backend=gp.data.AvailableBackends.PYTORCH
44+
)
45+
)
4146

4247
# Assert
4348
arrays = model.solutions.raw_arrays # * arrays is equivalent to gempy v2 solutions
@@ -51,3 +56,21 @@ def test_outliers_model_1():
5156
show_boundaries=False,
5257
show=True
5358
)
59+
60+
gpv.plot_2d(
61+
model=model,
62+
show_data=False,
63+
show_boundaries=False,
64+
show_scalar=True,
65+
show=True
66+
)
67+
68+
69+
gpv.plot_2d(
70+
model=model,
71+
show_data=False,
72+
show_boundaries=False,
73+
show_scalar=True,
74+
series_n=1,
75+
show=True
76+
)

0 commit comments

Comments
 (0)