-
Notifications
You must be signed in to change notification settings - Fork 121
Error in gravmag_polyprism calculation and gravmag_imaging #419
Comments
Hi @zdl0320, could you please report what version of Fatiando, numpy, and matplotlib you're using? Did you install using Anaconda? Did you install mayavi from conda-forge? |
Hi Uieda, sorry for leaving out the key info and it is listed below: Thanks a lot. |
@zdl0320 please follow these instructions to install all the dependencies for the paper in a separate conda environment: https://github.com/pinga-lab/paper-moho-inversion-tesseroids#setting-up-your-environment This will make sure you have the versions of the libraries that we used to produce the results in the paper. I can't guarantee that things will work with other versions. |
I'll try that, thank you so much, Uieda. You have done great job for this excellent project. A couple of guys recommended Fatiando to me and I would do the same. |
Thanks @zdl0320! We're trying to move open geoscience forward a little bit. Let us know if you have any feature requests or come across any bugs. |
Sorry for the delay, Leon, I was on a business tour last week. I followed your instructions and create the virtual environment, but found out that it is for running moho inversion, not for polygon prism gravity forward calculation. I have not got the point, is there any relation between them? I really do want to figure it out and sorry for ant inconvenience to you. Thanks again. |
@zdl0320 sorry about that, I think I replied to the wrong message. The recipe gravmag_imaging uses the fatiando.vis.myv package which relies on Mayavi. The imaging method itself doesn't need it, it's just for the plotting. The matplotlib interactivity appears to be broken for newer versions of matplotlib. I haven't used that in a while so I didn't notice. For now, you can do the forward modeling but just not the interactive stuff. |
Hi there, I got errors when executing gravmag_polyprism and gravmag_imaging.
For the first one, I cannot click in the blank figure to draw the polygon (the interactive input mode does not work). So the error goes to
draw_polygon
raise ValueError("Need at least 3 points to make a polygon").
For the second one, the error shows ImportError: No module named enthought.mayavi .
I was wondering do I need to install Enthought Canopy ? But it is similar to Anconda, are they compatible?
Thank you very much for any help.
Dailei. (zhangdailei89@hotmail.com)
The text was updated successfully, but these errors were encountered: