Skip to content

Commit 333fc88

Browse files
committed
[TEST] Update gravity test parameters and computation behavior
Set `scalar_field_at_interface` values and enabled scalar gradient computation. Adjusted function call to disable serialization validation for testing purposes.
1 parent e19a3a5 commit 333fc88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_modules/_geophysics_TO_UPDATE/test_gravity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_gravity():
5959
structural_frame=frame,
6060
)
6161

62-
# gp.compute_model(geo_model)
62+
gp.compute_model(geo_model, validate_serialization=False)
6363

6464
import gempy_viewer as gpv
6565
gpv.plot_2d(geo_model, cell_number=0)

test/test_modules/_geophysics_TO_UPDATE/test_gravity.test_gravity.verify/2-layers.approved.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"_model_transform": null
2828
},
29-
"scalar_field_at_interface": null,
29+
"scalar_field_at_interface": 0.09000000000000002,
3030
"_id": -1
3131
},
3232
{
@@ -43,7 +43,7 @@
4343
"name_id_map": null,
4444
"_model_transform": null
4545
},
46-
"scalar_field_at_interface": null,
46+
"scalar_field_at_interface": -0.2483333333333333,
4747
"_id": -1
4848
}
4949
],
@@ -154,7 +154,7 @@
154154
"mesh_extraction_masking_options": 3,
155155
"mesh_extraction_fancy": true,
156156
"evaluation_chunk_size": 500000,
157-
"compute_scalar_gradient": false,
157+
"compute_scalar_gradient": true,
158158
"verbose": false
159159
},
160160
"debug": true,

0 commit comments

Comments
 (0)