Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Error in gravmag_polyprism calculation and gravmag_imaging #419

Open
zdl0320 opened this issue Dec 21, 2017 · 7 comments
Open

Error in gravmag_polyprism calculation and gravmag_imaging #419

zdl0320 opened this issue Dec 21, 2017 · 7 comments

Comments

@zdl0320
Copy link

zdl0320 commented Dec 21, 2017

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)

@leouieda
Copy link
Member

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?

@zdl0320
Copy link
Author

zdl0320 commented Dec 22, 2017

Hi Uieda, sorry for leaving out the key info and it is listed below:
Fatiando 0.5
numpy 1.13.3
matplotlib 2.1.1
Fatiando was installed with pip using Anaconda, so numpy, matplotlib, et al. were installed first with conda.
Mayavi was not installed from conda-forge. Actually, when installing mayavi with conda install mayavi, it shows Unsatisfiable Error: The following specifications were found to be in ocnflict:
- mayavi
- navigator-updater
- pywavelets
And mayavi's version is 4.5.0.

Thanks a lot.

@leouieda
Copy link
Member

@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.

@zdl0320
Copy link
Author

zdl0320 commented Dec 22, 2017

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.

@leouieda
Copy link
Member

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.

@zdl0320
Copy link
Author

zdl0320 commented Jan 2, 2018

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.

@leouieda
Copy link
Member

@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.

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

No branches or pull requests

2 participants