-
Hi everyone, I'll preface my question saying that I am very new with gempy, python and programming in general so bear with me. I installed GemGIS and Gempy in a new Anaconda environment, as per instruction. I started using Jupyter but changed to Spyder and I followed the steps to create the first model, the planar beds one. import pandas as pd
import gempy as gp
import matplotlib.pyplot as plt
interfaces = pd.read_csv('.../gemgis_data-main/data/model1/model1_interfaces.csv',
delimiter = '\t')
interfaces.head()
orientations = pd.read_csv('.../gemgis_data-main/data/model1/model1_orientations.csv',
delimiter='\t')
orientations.head() No problem with importing the modules and with reading the data. geo_model = gp.create_model('model1')
geo_model This is the code I'm using and where I'm stuck, when I run this I'm receiving this error: I thought maybe I installed something wrong and tried several times with new wnvironments but I always stop here. During my tests I found that the attribute geo_model: gp.data.GeoModel = gp.create_geomodel(
project_name='Model1',
extent=[0, 150, -10, 10, -100, 0],
resolution=[100, 2, 100],
# refinement=6,
structural_frame=gp.data.StructuralFrame.initialize_default_structure()
) so maybe, I thought, I'm sorry if there are gaps of basic knowledge in my reasoning, I'm trying to learn and solve possible problems along the way but could not find a solution to this one alone. So I'm happy to any correction if I'm referring to things wrongly. I'm also sorry for the incomplete post, I published the question by mistake while editing and I'm adding info now. I'm seeing already some comments so @javoha let me know if I need to share anything else and @AlexanderJuestel I think that might be the case, I searched around for alternate tutorial on Gempy v3 cause I suspected that could be the cause of my issues but I could not find any...Could I ask where to find them? I surely missed them! Thanks a lot for the very quick replies, Edit: I think that I found what I was searching for at https://docs.gempy.org/tutorials/ch1_fundamentals/ch1_1_basics.html, I saw the tutorial before but for some reason thought that it was not my case, let me know if I'm wrong. Thank you again! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello @ldrlei, |
Beta Was this translation helpful? Give feedback.
-
Hey @ldrlei, Without knowing your exact issue, I assume that you have installed the latest version of Gempy while the GemGIS tutorials still use the gempy_legacy version. You may want to check out the new Gempy tutorials and adapt the GemGIS tutorials until we have reworked them. |
Beta Was this translation helpful? Give feedback.
-
Hi @ldrlei , |
Beta Was this translation helpful? Give feedback.
Hi @ldrlei ,
thanks for the updated information. So first things first: As @AlexanderJuestel already said - Gempy was updated to a new version a while ago and GemGis has not yet been updated to amtch the new version. The errors you are getting are basically you doing things that do not exist or where renamed in gempy version 3.
What does this mean: Easiest case would be focusing just on gempy right now. You can look at all the tutorials on the gempy page (the one you linked is a nice start) and these should run in your environment. Let me know if you encounter any problems.
For GemGis: It might take a while until it is updated to the new gempy version, so as of now you can not just use th…