Content-Length: 694852 | pFad | http://github.com/simpeg/simpeg/pull/1234/files

E1 General Doc cleanup by jcapriot · Pull Request #1234 · simpeg/simpeg · GitHub
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

General Doc cleanup #1234

Merged
merged 5 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SimPEG/electromagnetics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
.. autosummary::
:toctree: generated/

analytics.h[2]AnalyticDipoleT
analytics.h[2]AnalyticCentLoopT
analytics.h[2]AnalyticDipoleF
analytics.hzAnalyticDipoleT
analytics.hzAnalyticCentLoopT
analytics.hzAnalyticDipoleF
analytics.getCasingEphiMagDipole
analytics.getCasingHrMagDipole
analytics.getCasingHzMagDipole
Expand Down
37 changes: 18 additions & 19 deletions SimPEG/electromagnetics/analytics/FDEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,24 @@ def hzAnalyticDipoleF(r, freq, sigma, secondary=True, mu=mu_0):
1988, and the example reproduces their Figure 4.2.


.. plot::

import numpy as np
import matplotlib.pyplot as plt
from SimPEG import electromagnetics as EM
freq = np.logspace(-1, 5, 301)
test = EM.analytics.h[2]AnalyticDipoleF(
100, freq, 0.01, secondary=False)
plt.loglog(freq, test.real, 'C0-', label='Real')
plt.loglog(freq, -test.real, 'C0--')
plt.loglog(freq, test.imag, 'C1-', label='Imaginary')
plt.loglog(freq, -test.imag, 'C1--')
plt.title('Response at $r=100$ m')
plt.xlim([1e-1, 1e5])
plt.ylim([1e-12, 1e-6])
plt.xlabel('Frequency (Hz)')
plt.ylabel('$H_z$ (A/m)')
plt.legend(loc=6)
plt.show()
Examples
--------
>>> import matplotlib.pyplot as plt
>>> from SimPEG import electromagnetics as em
>>> freq = np.logspace(-1, 5, 301)
>>> test = em.analytics.hzAnalyticDipoleF(
>>> 100, freq, 0.01, secondary=False)
>>> plt.loglog(freq, test.real, 'C0-', label='Real')
>>> plt.loglog(freq, -test.real, 'C0--')
>>> plt.loglog(freq, test.imag, 'C1-', label='Imaginary')
>>> plt.loglog(freq, -test.imag, 'C1--')
>>> plt.title('Response at $r=100$ m')
>>> plt.xlim([1e-1, 1e5])
>>> plt.ylim([1e-12, 1e-6])
>>> plt.xlabel('Frequency (Hz)')
>>> plt.ylabel('$H_z$ (A/m)')
>>> plt.legend(loc=6)
>>> plt.show()


**Reference**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.. autosummary::
:toctree: generated/

sources.StreamingPotential
sources.StreamingCurrents

Surveys
=======
Expand Down
13 changes: 7 additions & 6 deletions SimPEG/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

class Fields:
"""Fancy Field Storage
.. code::python
fields = Fields(
simulation=simulation, knownFields={"phi": "CC"}
)
fields[:,'phi'] = phi
print(fields[src0,'phi'])

Examples
--------
>>> fields = Fields(
... simulation=simulation, knownFields={"phi": "CC"}
... )
>>> fields[:,'phi'] = phi
"""

_dtype = float
Expand Down
2 changes: 1 addition & 1 deletion SimPEG/potential_fields/gravity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Simulation3DDifferential

Survey, Sources and Receivers
============================
=============================

.. autosummary::
:toctree: generated/
Expand Down
1 change: 1 addition & 0 deletions SimPEG/regularization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@

.. autosummary::
:toctree: generated/

CrossReferenceRegularization

Joint Regularizations
Expand Down
2 changes: 1 addition & 1 deletion SimPEG/regularization/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class Smallness(BaseRegularization):
:math:`\mathbf{m_{ref}}` is a reference model,
:math:`\mathbf{V}` are square root of cell volumes and
:math:`\mathbf{W}` is a weighting matrix (default Identity). If fixed or
free weights are provided, then it is :code:`diag(np.sqrt(weights))`).
free weights are provided, then it is :code:`diag(np.sqrt(weights))`).


**Optional Inputs**
Expand Down
43 changes: 0 additions & 43 deletions SimPEG/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
documentation for many details on items.


Coordinates Utility Functions
=============================

.. autosummary::
:toctree: generated/

rotation_matrix_from_normals
rotate_points_from_normals

Counter Utility Functions
=========================

Expand All @@ -30,17 +21,6 @@
count
timeIt

Curvilinear Utility Functions
=============================

.. autosummary::
:toctree: generated/

example_curvilinear_grid
face_info
index_cube
volume_tetrahedron


IO Utility Functions
====================
Expand Down Expand Up @@ -71,30 +51,12 @@
.. autosummary::
:toctree: generated/

av
av_extrap
cartesian2spherical
coterminal
ddx
define_plane_from_points
diagEst
eigenvalue_by_power_iteration
estimate_diagonal
get_subarray
kron3
ind2sub
inverse_2x2_block_diagonal
inverse_3x3_block_diagonal
inverse_property_tensor
make_property_tensor
mkvc
ndgrid
sdiag
sdinv
speye
spherical2cartesian
spzeros
sub2ind
unique_rows


Expand All @@ -104,9 +66,6 @@
.. autosummary::
:toctree: generated/

closest_points_index
extract_core_mesh
unpack_widths
surface2inds


Expand Down Expand Up @@ -157,7 +116,6 @@
.. autosummary::
:toctree: generated/

as_array_n_by_dim
call_hooks
check_stoppers
mem_profile_class
Expand All @@ -169,7 +127,6 @@
deprecate_property
hook
print_done
printDone
print_line
print_stoppers
print_titles
Expand Down
28 changes: 19 additions & 9 deletions SimPEG/utils/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,21 +1232,31 @@ def validate_active_indices(property_name, index_arr, n_cells):
# DEPRECATIONS
###############################################################
memProfileWrapper = deprecate_function(
mem_profile_class, "memProfileWrapper", removal_version="0.18.0"
mem_profile_class, "memProfileWrapper", removal_version="0.18.0", future_warn=True
)
setKwargs = deprecate_function(
set_kwargs, "setKwargs", removal_version="0.18.0", future_warn=True
)
printTitles = deprecate_function(
print_titles, "printTitles", removal_version="0.18.0", future_warn=True
)
printLine = deprecate_function(
print_line, "printLine", removal_version="0.18.0", future_warn=True
)
setKwargs = deprecate_function(set_kwargs, "setKwargs", removal_version="0.18.0")
printTitles = deprecate_function(print_titles, "printTitles", removal_version="0.18.0")
printLine = deprecate_function(print_line, "printLine", removal_version="0.18.0")
printStoppers = deprecate_function(
print_stoppers, "printStoppers", removal_version="0.18.0"
print_stoppers, "printStoppers", removal_version="0.18.0", future_warn=True
)
checkStoppers = deprecate_function(
check_stoppers, "checkStoppers", removal_version="0.18.0"
check_stoppers, "checkStoppers", removal_version="0.18.0", future_warn=True
)
printDone = deprecate_function(
print_done, "printDone", removal_version="0.18.0", future_warn=True
)
callHooks = deprecate_function(
call_hooks, "callHooks", removal_version="0.18.0", future_warn=True
)
printDone = deprecate_function(print_done, "printDone", removal_version="0.18.0")
callHooks = deprecate_function(call_hooks, "callHooks", removal_version="0.18.0")
dependentProperty = deprecate_function(
dependent_property, "dependentProperty", removal_version="0.18.0"
dependent_property, "dependentProperty", removal_version="0.18.0", future_warn=True
)
asArray_N_x_Dim = deprecate_function(
as_array_n_by_dim, "asArray_N_x_Dim", removal_version="0.19.0", future_warn=True
Expand Down
20 changes: 16 additions & 4 deletions SimPEG/utils/io_utils/io_utils_pf.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,26 @@ def write_gg3d_ubc(filename, data_object):


readUBCmagneticsObservations = deprecate_method(
read_mag3d_ubc, "readUBCmagneticsObservations", removal_version="0.14.4"
read_mag3d_ubc,
"readUBCmagneticsObservations",
removal_version="0.14.4",
future_warn=True,
)
writeUBCmagneticsObservations = deprecate_method(
write_mag3d_ubc, "writeUBCmagneticsObservations", removal_version="0.14.4"
write_mag3d_ubc,
"writeUBCmagneticsObservations",
removal_version="0.14.4",
future_warn=True,
)
readUBCgravityObservations = deprecate_method(
read_grav3d_ubc, "readUBCgravityObservations", removal_version="0.14.4"
read_grav3d_ubc,
"readUBCgravityObservations",
removal_version="0.14.4",
future_warn=True,
)
writeUBCgravityObservations = deprecate_method(
write_grav3d_ubc, "writeUBCgravityObservations", removal_version="0.14.4"
write_grav3d_ubc,
"writeUBCgravityObservations",
removal_version="0.14.4",
future_warn=True,
)
31 changes: 21 additions & 10 deletions SimPEG/utils/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,40 +517,51 @@ def get_indices_polygon(mesh, pts):
################################################


addBlock = deprecate_function(add_block, "addBlock", removal_version="0.19.0")
addBlock = deprecate_function(
add_block, "addBlock", removal_version="0.19.0", future_warn=True
)

getIndicesBlock = deprecate_function(
get_indices_block, "getIndicesBlock", removal_version="0.19.0"
get_indices_block, "getIndicesBlock", removal_version="0.19.0", future_warn=True
)

defineBlock = deprecate_function(
create_block_in_wholespace, "defineBlock", removal_version="0.19.0"
create_block_in_wholespace,
"defineBlock",
removal_version="0.19.0",
future_warn=True,
)

defineEllipse = deprecate_function(
create_ellipse_in_wholespace, "defineEllipse", removal_version="0.19.0"
create_ellipse_in_wholespace,
"defineEllipse",
removal_version="0.19.0",
future_warn=True,
)

getIndicesSphere = deprecate_function(
get_indices_sphere, "getIndicesSphere", removal_version="0.19.0"
get_indices_sphere, "getIndicesSphere", removal_version="0.19.0", future_warn=True
)

defineTwoLayers = deprecate_function(
create_2_layer_model, "defineTwoLayers", removal_version="0.19.0"
create_2_layer_model, "defineTwoLayers", removal_version="0.19.0", future_warn=True
)

layeredModel = deprecate_function(
create_layers_model, "layeredModel", removal_version="0.19.0"
create_layers_model, "layeredModel", removal_version="0.19.0", future_warn=True
)

randomModel = deprecate_function(
create_random_model, "randomModel", removal_version="0.19.0"
create_random_model, "randomModel", removal_version="0.19.0", future_warn=True
)

polygonInd = deprecate_function(
get_indices_polygon, "polygonInd", removal_version="0.19.0"
get_indices_polygon, "polygonInd", removal_version="0.19.0", future_warn=True
)

scalarConductivity = deprecate_function(
create_from_function, "scalarConductivity", removal_version="0.19.0"
create_from_function,
"scalarConductivity",
removal_version="0.19.0",
future_warn=True,
)
2 changes: 1 addition & 1 deletion tutorials/07-fdem/plot_fwd_2_fem_cyl.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#
# Here we define a x-offset borehole survey that consists of a single vertical line
# of source-receiver pairs which measred the secondary magnetic flux density
# over a range of frequencies.
# over a range of frequencies.
#

# Frequencies being predicted (10 Hz to 10000 Hz)
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/simpeg/simpeg/pull/1234/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy