Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[CLN] Simplify Hecho example by removing serialization logic and enha…
…ncing validation

Removed redundant save/load and serialization validation in the Hecho example. Adjusted section grid to ensure consistent tuple formatting and enabled `validate_serialization` in model computation.
  • Loading branch information
Leguark committed Sep 30, 2025
commit fd5675f3ebcae84008b17c4795d6c3ba46084381
8 changes: 2 additions & 6 deletions examples/examples/real/Hecho.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
gp.set_section_grid(
grid=geo_model.grid,
section_dict={
'section': ([0, 0], [16, 0], [321, 91])
'section': ((0., 0.), (16., 0.), (321, 91))
},
)

Expand Down Expand Up @@ -218,10 +218,6 @@
# Setting verbose and condition number options for debugging
geo_model.interpolation_options.kernel_options.compute_condition_number = True

gp.save_model(geo_model, 'Hecho.gempy')
model_deserialized = gp.load_model('Hecho.gempy')

_validate_serialization(geo_model, model_deserialized)

# %%
gp.compute_model(
Expand All @@ -230,7 +226,7 @@
backend=gp.data.AvailableBackends.PYTORCH,
dtype='float64'
),
validate_serialization=False
validate_serialization=True
)

# %%
Expand Down