Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with syntheic data generation #1

Open
zeedotcom77 opened this issue Aug 19, 2017 · 1 comment
Open

issue with syntheic data generation #1

zeedotcom77 opened this issue Aug 19, 2017 · 1 comment

Comments

@zeedotcom77
Copy link

hi
i have an issue if you plz help me out here
when i use the code

area = [5000, 25000, 5000, 25000]
bounds = [0, 30000, 0, 30000, 0, 5000]
mpl_fig = plt.figure()

mpl.axis('scaled')
mpl.square(area)
dike_verts = mpl.draw_polygon(bounds[:4], mpl.gca(), xy2ne=True)
dike_verts
dike = PolygonalPrism(dike_verts, 0, 5000, {'magnetization': 10})
myv.figure(size=(600, 400))
myv.polyprisms([dike], linewidth=2)
myv.axes(myv.outline(bounds), ranges=[b*0.001 for b in bounds], nlabels=3, fmt='%.1f')
myv.wall_north(bounds)
myv.wall_bottom(bounds)
myv.savefig('tmp/model_dike.png')
myv.show()
Image(filename='tmp/model_dike.png')

i receive this error

C:\ProgramData\Anaconda2\lib\site-packages\fatiando\vis\mpl.py:70: UserWarning: This module will be removed in v0.6. We recommend the use of matplotlib.pyplot module directly. Some of the fatiando specific functions will remain.
"specific functions will remain.")
C:\ProgramData\Anaconda2\lib\site-packages\fatiando\vis\myv.py:53: UserWarning: This module will be removed in v0.7.
warnings.warn("This module will be removed in v0.7.")

AttributeError Traceback (most recent call last)
in ()
8 from fatiando.vis import myv, mpl
9 import fatiando
---> 10 print("Using Fatiando a Terra version {0}".format((fatiando.version)))
11 area = [5000, 25000, 5000, 25000]
12 bounds = [0, 30000, 0, 30000, 0, 5000]

AttributeError: 'module' object has no attribute 'version'

i am stuck here would you please help me thanks

@leouieda
Copy link

Hi @zeedotcom77, you're probably using a newer version of Fatiando a Terra. The results in the paper were generated using version 0.2. You'll need to install that version to run the code in notebooks. Or you'll need to update the code to work with the new version.

To install v0.2:

pip install fatiando==0.2

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

No branches or pull requests

2 participants