GithubHelp home page GithubHelp logo

`get_element_bt_name("basement")` -> ValueError: Element with name "basement" not found in the structural frame. about gempy HOT 4 CLOSED

JoostGevaert-Arup avatar JoostGevaert-Arup commented on June 14, 2024
`get_element_bt_name("basement")` -> ValueError: Element with name "basement" not found in the structural frame.

from gempy.

Comments (4)

flohorovicic avatar flohorovicic commented on June 14, 2024 1

Yes, good idea! I'll add this as a development note. Just as an information: we are also working on more notebooks for Google Colab with additional examples and use cases. Hope this helps you and your colleagues in getting forward with GemPy!

from gempy.

JoostGevaert-Arup avatar JoostGevaert-Arup commented on June 14, 2024

I can obtain "surface1" and "surface2", I guess because they're in a <class 'gempy.core.data.structural_group.StructuralGroup'?
However, I do find it somewhat confusing that "basement" is listed when I do print(geo_model.structural_frame.elements_names), but then cannot obtain it.

from gempy.

flohorovicic avatar flohorovicic commented on June 14, 2024

Hi @JoostGevaert-Arup,

Happy to see that you are giving the online GemPy version a try!

The reason that you can not get more information about the basement is that it is - by default- the base of the stratigraphic pile - i.e.: everything below the first structural element that you define ("surface1", in this case). As such, it does not have any data associated with it (no interface points, orientations, etc.).

Can you explain a bit more what exactly you try to achieve and what you need it for? Maybe we can solve the issue from there?

from gempy.

JoostGevaert-Arup avatar JoostGevaert-Arup commented on June 14, 2024

Hi Florian,

Great to hear from you!
I'm a big fan of open-source software and have always been looking for ways to use GemPy in my work in geotechnical engineering, so I was very happy to see it'll now become easier to get my colleagues introduced to GemPy with the Google Colab :)

I was not really trying to achieve anything specific. I was just exploring GemPy in that Colab and then stumbled upon the error mentioned above.

Rather than returning a ValueError when trying to retrieve the "basement", it might make more sense to return a message similar to what you just explained above?

from gempy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.