Skip to content

Commit

Permalink
Removed the fatiando.gui package
Browse files Browse the repository at this point in the history
Moved the Moulder class to gravmag.interactive. Deleted the other
classes and their respective cookbook recipes.

Updated docs accordingly.
  • Loading branch information
leouieda committed Nov 23, 2014
1 parent 829dd8b commit e813073
Show file tree
Hide file tree
Showing 15 changed files with 649 additions and 857 deletions.
2 changes: 1 addition & 1 deletion cookbook/gravmag_2d_polygon_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
GravMag: Interactive 2D forward modeling with polygons
"""
import numpy
from fatiando.gui.simple import Moulder
from fatiando.gravmag.interactive import Moulder

area = (0, 100000, 0, 5000)
xp = numpy.arange(0, 100000, 1000)
Expand Down
12 changes: 0 additions & 12 deletions cookbook/gravmag_basin2d_trapezoidal_forward.py

This file was deleted.

12 changes: 0 additions & 12 deletions cookbook/gravmag_basin2d_triangular_forward.py

This file was deleted.

12 changes: 0 additions & 12 deletions cookbook/seismic_profile_vertical_interactive.py

This file was deleted.

1 change: 0 additions & 1 deletion doc/api/fatiando.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ API Reference: The ``fatiando`` package
gridder.rst
vis.rst
datasets.rst
gui.rst
utils.rst
constants.rst
inversion.rst
Expand Down
9 changes: 9 additions & 0 deletions doc/api/gravmag.interactive.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _fatiando_gravmag_interactive:

Interactivity through functions and classes (``fatiando.gravmag.interactive``)
==============================================================================

.. automodule:: fatiando.gravmag.interactive
:members:
:show-inheritance:

1 change: 1 addition & 0 deletions doc/api/gravmag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Gravity and magnetics (``fatiando.gravmag``)
gravmag.half_sph_shell.rst
gravmag.magdir.rst
gravmag.normal_gravity.rst
gravmag.interactive.rst
12 changes: 0 additions & 12 deletions doc/api/gui.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/api/gui.simple.rst

This file was deleted.

9 changes: 7 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ def __getattr__(self, name):
'scipy.special', 'scipy.interpolate',
'matplotlib',
'matplotlib.mlab', 'matplotlib.pyplot', 'matplotlib.widgets',
'matplotlib.nxutils',
'PIL.Image']
'matplotlib.nxutils', 'matplotlib.lines',
'PIL.Image',
'IPython',
'IPython.core',
'IPython.core.pylabtools',
'IPython.display',
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()

Expand Down
2 changes: 0 additions & 2 deletions fatiando/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
Plotting utilities for 2D (using matplotlib) and 3D (using mayavi)
* :mod:`datasets <fatiando.datasets>`:
Fetch and load datasets and models from web repositories
* :mod:`gui <fatiando.gui>`:
Graphical user interfaces (still very primitive)
* :mod:`utils <fatiando.utils>`:
Miscelaneous utilities, like mathematical functions, unit conversion, etc
* :mod:`~fatiando.constants`:
Expand Down
6 changes: 6 additions & 0 deletions fatiando/gravmag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
* :mod:`~fatiando.gravmag.tensor`: Utilities for operating on the gradient
tensor
**Interactivity**
Module :mod:`~fatiando.gravmag.interactive` implements matplotlib GUIs and
IPython HTML widgets for interacting with the modeling and processing
functions.
----
"""
Loading

0 comments on commit e813073

Please sign in to comment.