Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load model from .json file #1003

Open
flohorovicic opened this issue Mar 20, 2025 · 3 comments
Open

Load model from .json file #1003

flohorovicic opened this issue Mar 20, 2025 · 3 comments
Assignees
Labels
enhancement gempy 3 Will come with the next major update

Comments

@flohorovicic
Copy link
Member

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 flohorovicic added enhancement gempy 3 Will come with the next major update labels Mar 20, 2025
@flohorovicic flohorovicic self-assigned this Mar 20, 2025
@flohorovicic
Copy link
Member Author

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

@flohorovicic
Copy link
Member Author

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

@flohorovicic
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement gempy 3 Will come with the next major update
Projects
None yet
Development

No branches or pull requests

1 participant