gempy icon indicating copy to clipboard operation
gempy copied to clipboard

Load model from .json file

Open flohorovicic opened this issue 8 months ago • 4 comments

Is your feature request related to a problem? Please describe. Add functionality to load (or create) model from .json file. Should ideally be complemented with a corresponding "save model to .json file"

Describe the solution you'd like A method to create a model object with complete functionality (up to gp.compute_model(model)-step) from a .json file. Important to save/load models, and as a more flexible input/ output feature (instead of multiple .csv files, corresponding python-scripts, etc.).

Describe alternatives you've considered Current state, which requires too many different files and is, therefore, error-prone.

Additional context XML formats would also be possible, but I believe .json is a good choice between flexibility and strictness (with enforced schemas).

flohorovicic avatar Mar 20 '25 06:03 flohorovicic

See ongoing developments in https://github.com/flohorovicic/gempy/tree/feature/json_io

flohorovicic avatar Mar 20 '25 06:03 flohorovicic

Current state: possible to load data (surface and orientation), model metadata, layer stack and regular grid from .json. Tests not complete, yet.

flohorovicic avatar Mar 23 '25 19:03 flohorovicic

Full functionality for simple model (single structural group) completely implemented, including complete set of default values.

flohorovicic avatar Mar 25 '25 15:03 flohorovicic

@flohorovicic I guess this task is done?

Leguark avatar May 03 '25 08:05 Leguark