gempy.load_model¶
- gempy.load_model(path: str) GeoModel[source]¶
Load a GemPy geological model from a
.gempyfile.The function reconstructs the saved
GeoModel, including its structural data, model configuration, and grid information. Computed model solutions are not restored and need to be recomputed withgempy.compute_model().- Parameters:
path (str) – Path to the
.gempymodel file. Unlikesave_model(), the.gempyextension must be included explicitly.- Returns:
The reconstructed geological model.
- Return type:
- Raises:
ValueError – If
pathdoes not have the.gempyextension.FileNotFoundError – If the specified file does not exist.
Notes
Model serialization is currently under active development and the
.gempyformat may change in future versions. Files written by current GemPy versions include serialization metadata with the GemPy package version and serialization format version used to write the model.