File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ def test_generate_horizontal_stratigraphic_model():
38
38
39
39
40
40
def _validate_serialization (original_model , model_deserialized ):
41
- a = hash (original_model .structural_frame .structural_elements [ 1 ]. surface_points .data .tobytes ())
42
- b = hash (model_deserialized .structural_frame .structural_elements [ 1 ]. surface_points .data .tobytes ())
43
- o_a = hash (original_model .structural_frame .structural_elements [ 1 ]. orientations .data .tobytes ())
44
- o_b = hash (model_deserialized .structural_frame .structural_elements [ 1 ]. orientations .data .tobytes ())
41
+ a = hash (original_model .structural_frame .surface_points_copy .data .tobytes ())
42
+ b = hash (model_deserialized .structural_frame .surface_points_copy .data .tobytes ())
43
+ o_a = hash (original_model .structural_frame .orientations_copy .data .tobytes ())
44
+ o_b = hash (model_deserialized .structural_frame .orientations_copy .data .tobytes ())
45
45
assert a == b , "Hashes for surface points are not equal"
46
46
assert o_a == o_b , "Hashes for orientations are not equal"
47
47
assert model_deserialized .__str__ () == original_model .__str__ ()
@@ -55,6 +55,11 @@ def test_save_model_to_disk():
55
55
loaded_model = load_model ("temp/test_save_model_to_disk.json" )
56
56
_validate_serialization (model , loaded_model )
57
57
58
+ gp .compute_model (loaded_model )
59
+ if True :
60
+ import gempy_viewer as gpv
61
+ gpv .plot_3d (loaded_model )
62
+
58
63
59
64
60
65
You can’t perform that action at this time.
0 commit comments