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

[ENH] Improve Error Handling when formation names are not identical #904

Open
AlexanderJuestel opened this issue May 29, 2024 · 1 comment

Comments

@AlexanderJuestel
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I was working with a very small dataset and got a very cryptic error message when executing gp.create_geomodel(..).

My mistake was that I had misspelled a formation name in the orientations file (German, English) which could not be found in the name_id_map of the surface points. The only error I get back is a KeyError with the name of the misspelled formation.

Describe the solution you'd like
A little helper function that checks if the formation names are identical in both the orientation file and the surface points file and returns a useful error message.

Describe alternatives you've considered
Fixing the spelling mistake

@Leguark
Copy link
Member

Leguark commented Jun 25, 2024

Hey Alex, can you jump in and capture the error and raise a better error exactly were it breaks? It is easier for you to make the changes that for me trying to reproduce it first.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants