Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 21, 2023
1 parent 0304b87 commit d8ece67
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/user_guide/simple_inversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from invert4geom import utils, inversion, synthetic, plotting\n",
"from antarctic_plots import maps\n",
"from antarctic_plots import utils as ap_utils\n",
"import logging\n",
"\n",
"import verde as vd\n",
"import harmonica as hm\n",
"import xarray as xr\n",
"import logging"
"from antarctic_plots import maps\n",
"from antarctic_plots import utils as ap_utils\n",
"\n",
"from invert4geom import inversion, plotting, synthetic, utils"
]
},
{
Expand Down Expand Up @@ -1166,25 +1169,22 @@
"\n",
"# run the inversion\n",
"results = inversion.run_inversion(\n",
" input_grav = grav_df,\n",
" input_grav_column = \"observed_grav\",\n",
" prism_layer = starting_prisms,\n",
"\n",
" input_grav=grav_df,\n",
" input_grav_column=\"observed_grav\",\n",
" prism_layer=starting_prisms,\n",
" # display the convergence of the inversion\n",
" plot_convergence = True,\n",
"\n",
" plot_convergence=True,\n",
" # choose the small prism approximation method for calculating the vertical\n",
" # derivative of gravity\n",
" deriv_type=\"prisms\",\n",
"\n",
" # set stopping criteria\n",
" max_iterations = 10,\n",
" max_iterations=10,\n",
" l2_norm_tolerance=0.02,\n",
" delta_l2_norm_tolerance=1.001,\n",
")\n",
"\n",
"# collect the results\n",
"topo_results, grav_results, parameters, elapsed_time = results\n"
"topo_results, grav_results, parameters, elapsed_time = results"
]
},
{
Expand Down

0 comments on commit d8ece67

Please sign in to comment.