Skip to content

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

Open

Description

@AlexanderJuestel

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

Activity

  1. Leguark commented on Jun 25, 2024

    @Leguark
    SponsorMember

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions