diff --git a/SimPEG/Examples/__init__.py b/SimPEG/Examples/__init__.py index e788cd4c..2ee4eb6d 100644 --- a/SimPEG/Examples/__init__.py +++ b/SimPEG/Examples/__init__.py @@ -95,7 +95,7 @@ if __name__ == '__main__': from SimPEG import Examples Examples.%s.run() -.. literalinclude:: ../../../../SimPEG/Examples/%s.py +.. literalinclude:: ../../../SimPEG/Examples/%s.py :language: python :linenos: """%(name,doc,name,name) diff --git a/docs/content/examples/DC_Analytic_Dipole.rst b/docs/content/examples/DC_Analytic_Dipole.rst index 9f895944..955ddf10 100644 --- a/docs/content/examples/DC_Analytic_Dipole.rst +++ b/docs/content/examples/DC_Analytic_Dipole.rst @@ -16,6 +16,6 @@ DC Analytic Dipole from SimPEG import Examples Examples.DC_Analytic_Dipole.run() -.. literalinclude:: ../../../../SimPEG/Examples/DC_Analytic_Dipole.py +.. literalinclude:: ../../../SimPEG/Examples/DC_Analytic_Dipole.py :language: python :linenos: diff --git a/docs/content/examples/DC_Forward_PseudoSection.rst b/docs/content/examples/DC_Forward_PseudoSection.rst index 2afb4a34..a59aec60 100644 --- a/docs/content/examples/DC_Forward_PseudoSection.rst +++ b/docs/content/examples/DC_Forward_PseudoSection.rst @@ -31,6 +31,6 @@ Created by @fourndo from SimPEG import Examples Examples.DC_Forward_PseudoSection.run() -.. literalinclude:: ../../../../SimPEG/Examples/DC_Forward_PseudoSection.py +.. literalinclude:: ../../../SimPEG/Examples/DC_Forward_PseudoSection.py :language: python :linenos: diff --git a/docs/content/examples/EM_FDEM_1D_Inversion.rst b/docs/content/examples/EM_FDEM_1D_Inversion.rst index c087d81a..3cac55db 100644 --- a/docs/content/examples/EM_FDEM_1D_Inversion.rst +++ b/docs/content/examples/EM_FDEM_1D_Inversion.rst @@ -21,6 +21,6 @@ Here we will create and run a FDEM 1D inversion. from SimPEG import Examples Examples.EM_FDEM_1D_Inversion.run() -.. literalinclude:: ../../../../SimPEG/Examples/EM_FDEM_1D_Inversion.py +.. literalinclude:: ../../../SimPEG/Examples/EM_FDEM_1D_Inversion.py :language: python :linenos: diff --git a/docs/content/examples/EM_FDEM_Analytic_MagDipoleWholespace.rst b/docs/content/examples/EM_FDEM_Analytic_MagDipoleWholespace.rst index 418175db..81a4cb00 100644 --- a/docs/content/examples/EM_FDEM_Analytic_MagDipoleWholespace.rst +++ b/docs/content/examples/EM_FDEM_Analytic_MagDipoleWholespace.rst @@ -21,6 +21,6 @@ Here we plot the magnetic flux density from a harmonic dipole in a wholespace. from SimPEG import Examples Examples.EM_FDEM_Analytic_MagDipoleWholespace.run() -.. literalinclude:: ../../../../SimPEG/Examples/EM_FDEM_Analytic_MagDipoleWholespace.py +.. literalinclude:: ../../../SimPEG/Examples/EM_FDEM_Analytic_MagDipoleWholespace.py :language: python :linenos: diff --git a/docs/content/examples/EM_Schenkel_Morrison_Casing.rst b/docs/content/examples/EM_Schenkel_Morrison_Casing.rst index e845105b..c82a1ad0 100644 --- a/docs/content/examples/EM_Schenkel_Morrison_Casing.rst +++ b/docs/content/examples/EM_Schenkel_Morrison_Casing.rst @@ -56,6 +56,6 @@ citation would be much appreciated! from SimPEG import Examples Examples.EM_Schenkel_Morrison_Casing.run() -.. literalinclude:: ../../../../SimPEG/Examples/EM_Schenkel_Morrison_Casing.py +.. literalinclude:: ../../../SimPEG/Examples/EM_Schenkel_Morrison_Casing.py :language: python :linenos: diff --git a/docs/content/examples/EM_TDEM_1D_Inversion.rst b/docs/content/examples/EM_TDEM_1D_Inversion.rst index 7619305b..dd308472 100644 --- a/docs/content/examples/EM_TDEM_1D_Inversion.rst +++ b/docs/content/examples/EM_TDEM_1D_Inversion.rst @@ -21,6 +21,6 @@ Here we will create and run a TDEM 1D inversion. from SimPEG import Examples Examples.EM_TDEM_1D_Inversion.run() -.. literalinclude:: ../../../../SimPEG/Examples/EM_TDEM_1D_Inversion.py +.. literalinclude:: ../../../SimPEG/Examples/EM_TDEM_1D_Inversion.py :language: python :linenos: diff --git a/docs/content/examples/FLOW_Richards_1D_Celia1990.rst b/docs/content/examples/FLOW_Richards_1D_Celia1990.rst index cb4c0e02..5bad1485 100644 --- a/docs/content/examples/FLOW_Richards_1D_Celia1990.rst +++ b/docs/content/examples/FLOW_Richards_1D_Celia1990.rst @@ -47,6 +47,6 @@ Here we reproduce the results from Celia1990_ demonstrating the head-based formu from SimPEG import Examples Examples.FLOW_Richards_1D_Celia1990.run() -.. literalinclude:: ../../../../SimPEG/Examples/FLOW_Richards_1D_Celia1990.py +.. literalinclude:: ../../../SimPEG/Examples/FLOW_Richards_1D_Celia1990.py :language: python :linenos: diff --git a/docs/content/examples/Inversion_Linear.rst b/docs/content/examples/Inversion_Linear.rst index 83109128..922cf4e0 100644 --- a/docs/content/examples/Inversion_Linear.rst +++ b/docs/content/examples/Inversion_Linear.rst @@ -21,6 +21,6 @@ Here we go over the basics of creating a linear problem and inversion. from SimPEG import Examples Examples.Inversion_Linear.run() -.. literalinclude:: ../../../../SimPEG/Examples/Inversion_Linear.py +.. literalinclude:: ../../../SimPEG/Examples/Inversion_Linear.py :language: python :linenos: diff --git a/docs/content/examples/MT_1D_ForwardAndInversion.rst b/docs/content/examples/MT_1D_ForwardAndInversion.rst index d137bcb0..79c11cfc 100644 --- a/docs/content/examples/MT_1D_ForwardAndInversion.rst +++ b/docs/content/examples/MT_1D_ForwardAndInversion.rst @@ -22,6 +22,6 @@ Setup and run a MT 1D inversion. from SimPEG import Examples Examples.MT_1D_ForwardAndInversion.run() -.. literalinclude:: ../../../../SimPEG/Examples/MT_1D_ForwardAndInversion.py +.. literalinclude:: ../../../SimPEG/Examples/MT_1D_ForwardAndInversion.py :language: python :linenos: diff --git a/docs/content/examples/MT_3D_Foward.rst b/docs/content/examples/MT_3D_Foward.rst index 916c47cd..a07fbdaf 100644 --- a/docs/content/examples/MT_3D_Foward.rst +++ b/docs/content/examples/MT_3D_Foward.rst @@ -21,6 +21,6 @@ Forward model 3D MT data. from SimPEG import Examples Examples.MT_3D_Foward.run() -.. literalinclude:: ../../../../SimPEG/Examples/MT_3D_Foward.py +.. literalinclude:: ../../../SimPEG/Examples/MT_3D_Foward.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_Basic_ForwardDC.rst b/docs/content/examples/Mesh_Basic_ForwardDC.rst index fe158027..b2660555 100644 --- a/docs/content/examples/Mesh_Basic_ForwardDC.rst +++ b/docs/content/examples/Mesh_Basic_ForwardDC.rst @@ -20,6 +20,6 @@ Mesh: Basic Forward 2D DC Resistivity from SimPEG import Examples Examples.Mesh_Basic_ForwardDC.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_Basic_ForwardDC.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_Basic_ForwardDC.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_Basic_PlotImage.rst b/docs/content/examples/Mesh_Basic_PlotImage.rst index 63d8c93b..6761ff7e 100644 --- a/docs/content/examples/Mesh_Basic_PlotImage.rst +++ b/docs/content/examples/Mesh_Basic_PlotImage.rst @@ -22,6 +22,6 @@ You can use M.PlotImage to plot images on all of the Meshes. from SimPEG import Examples Examples.Mesh_Basic_PlotImage.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_Basic_PlotImage.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_Basic_PlotImage.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_Basic_Types.rst b/docs/content/examples/Mesh_Basic_Types.rst index b77e7a6f..4bd4cf7c 100644 --- a/docs/content/examples/Mesh_Basic_Types.rst +++ b/docs/content/examples/Mesh_Basic_Types.rst @@ -21,6 +21,6 @@ Here we show SimPEG used to create three different types of meshes. from SimPEG import Examples Examples.Mesh_Basic_Types.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_Basic_Types.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_Basic_Types.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_Operators_CahnHilliard.rst b/docs/content/examples/Mesh_Operators_CahnHilliard.rst index ece0eef9..dd43aa45 100644 --- a/docs/content/examples/Mesh_Operators_CahnHilliard.rst +++ b/docs/content/examples/Mesh_Operators_CahnHilliard.rst @@ -52,6 +52,6 @@ field separating as the time increases. from SimPEG import Examples Examples.Mesh_Operators_CahnHilliard.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_Operators_CahnHilliard.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_Operators_CahnHilliard.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_QuadTree_Creation.rst b/docs/content/examples/Mesh_QuadTree_Creation.rst index 0e8e1a2d..d77f6fea 100644 --- a/docs/content/examples/Mesh_QuadTree_Creation.rst +++ b/docs/content/examples/Mesh_QuadTree_Creation.rst @@ -26,6 +26,6 @@ on an 8x8 mesh (2^3). from SimPEG import Examples Examples.Mesh_QuadTree_Creation.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_QuadTree_Creation.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_QuadTree_Creation.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_QuadTree_FaceDiv.rst b/docs/content/examples/Mesh_QuadTree_FaceDiv.rst index ac1b6fb8..2ecf154b 100644 --- a/docs/content/examples/Mesh_QuadTree_FaceDiv.rst +++ b/docs/content/examples/Mesh_QuadTree_FaceDiv.rst @@ -21,6 +21,6 @@ Mesh: QuadTree: FaceDiv from SimPEG import Examples Examples.Mesh_QuadTree_FaceDiv.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_QuadTree_FaceDiv.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_QuadTree_FaceDiv.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_QuadTree_HangingNodes.rst b/docs/content/examples/Mesh_QuadTree_HangingNodes.rst index 829632d3..e1d26b0b 100644 --- a/docs/content/examples/Mesh_QuadTree_HangingNodes.rst +++ b/docs/content/examples/Mesh_QuadTree_HangingNodes.rst @@ -26,6 +26,6 @@ on an 8x8 mesh (2^3). from SimPEG import Examples Examples.Mesh_QuadTree_HangingNodes.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_QuadTree_HangingNodes.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_QuadTree_HangingNodes.py :language: python :linenos: diff --git a/docs/content/examples/Mesh_Tensor_Creation.rst b/docs/content/examples/Mesh_Tensor_Creation.rst index 90c94d43..ee3af326 100644 --- a/docs/content/examples/Mesh_Tensor_Creation.rst +++ b/docs/content/examples/Mesh_Tensor_Creation.rst @@ -38,6 +38,6 @@ notation:: from SimPEG import Examples Examples.Mesh_Tensor_Creation.run() -.. literalinclude:: ../../../../SimPEG/Examples/Mesh_Tensor_Creation.py +.. literalinclude:: ../../../SimPEG/Examples/Mesh_Tensor_Creation.py :language: python :linenos: diff --git a/docs/content/examples/Utils_surface2ind_topo.rst b/docs/content/examples/Utils_surface2ind_topo.rst index ef08eae8..5d217562 100644 --- a/docs/content/examples/Utils_surface2ind_topo.rst +++ b/docs/content/examples/Utils_surface2ind_topo.rst @@ -23,6 +23,6 @@ a topographic surface. from SimPEG import Examples Examples.Utils_surface2ind_topo.run() -.. literalinclude:: ../../../../SimPEG/Examples/Utils_surface2ind_topo.py +.. literalinclude:: ../../../SimPEG/Examples/Utils_surface2ind_topo.py :language: python :linenos: