Skip to content

Commit 2a924a8

Browse files
committed
update the notebook used in the lab to use the true 2.5D code
1 parent 47e39a0 commit 2a924a8

File tree

1 file changed

+34
-113
lines changed

1 file changed

+34
-113
lines changed

notebooks/dcip/DC_SurveyDataInversion.ipynb

Lines changed: 34 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,18 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
7-
"outputs": [
8-
{
9-
"name": "stderr",
10-
"output_type": "stream",
11-
"text": [
12-
"/Users/syckdog/opt/anaconda3/envs/e350_notebook/lib/python3.9/site-packages/discretize/utils/code_utils.py:247: FutureWarning: ExtractCoreMesh has been deprecated, please use extract_core_mesh. It will be removed in version 1.0.0 of discretize.\n",
13-
" warnings.warn(\n"
14-
]
15-
}
16-
],
7+
"outputs": [],
178
"source": [
189
"import warnings\n",
1910
"warnings.filterwarnings(\"ignore\")\n",
2011
"from geoscilabs.dcip.DC_cylinder import cylinder_app\n",
2112
"from geoscilabs.dcip.DCLayers import plot_layer_potentials_app\n",
2213
"from geoscilabs.dcip.DC_Pseudosections import (\n",
2314
" DC2DPseudoWidget, MidpointPseudoSectionWidget, DC2DfwdWidget\n",
24-
")\n"
15+
")\n",
16+
"from geoscilabs.dcip.DCWidgetResLayer2_5D import ResLayer_app\n"
2517
]
2618
},
2719
{
@@ -54,24 +46,9 @@
5446
},
5547
{
5648
"cell_type": "code",
57-
"execution_count": 2,
49+
"execution_count": null,
5850
"metadata": {},
59-
"outputs": [
60-
{
61-
"data": {
62-
"application/vnd.jupyter.widget-view+json": {
63-
"model_id": "04569e8a845b4a32bc77d043b2950dd3",
64-
"version_major": 2,
65-
"version_minor": 0
66-
},
67-
"text/plain": [
68-
"MyApp(children=(ToggleButtons(description='survey', options=('Dipole-Dipole', 'Dipole-Pole', 'Pole-Dipole', 'P…"
69-
]
70-
},
71-
"metadata": {},
72-
"output_type": "display_data"
73-
}
74-
],
51+
"outputs": [],
7552
"source": [
7653
"cylinder_app()"
7754
]
@@ -119,46 +96,37 @@
11996
"cell_type": "markdown",
12097
"metadata": {},
12198
"source": [
122-
"## Two layer app"
99+
"## Two layer + cylinder app"
123100
]
124101
},
125102
{
126103
"cell_type": "markdown",
127104
"metadata": {},
128105
"source": [
129-
"- **A**: (+) Current electrode location\n",
130-
"- **B**: (-) Current electrode location\n",
131-
"- **M**: (+) Potential electrode location\n",
132-
"- **N**: (-) Potential electrode location\n",
133-
"- **$\\rho_1$**: Resistivity of the top layer\n",
134-
"- **$\\rho_2$**: Resistivity of the bottom layer\n",
135-
"- **h**: thickness of the first layer\n",
136-
"- **Plot**: Field to visualize\n",
137-
"- **Type**: which part of the field"
106+
" - **survey**: Type of survey\n",
107+
" - **A**: Electrode A (+) location\n",
108+
" - **B**: Electrode B (-) location\n",
109+
" - **M**: Electrode A (+) location\n",
110+
" - **N**: Electrode B (-) location\n",
111+
" - **$dz_{layer}$**: thickness of the resistive layer\n",
112+
" - **$zc_{ayer}$**: z location of the resistive layer\n",
113+
" - **xc**: x location of cylinder center\n",
114+
" - **zc**: z location of cylinder center\n",
115+
" - **$\\rho_{1}$**: Resistivity of the half-space\n",
116+
" - **$\\rho_{2}$**: Resistivity of the layer\n",
117+
" - **$\\rho_{3}$**: Resistivity of the cylinder\n",
118+
" - **Field**: Field to visualize\n",
119+
" - **Type**: which part of the field\n",
120+
" - **Scale**: Linear or Log Scale visualization"
138121
]
139122
},
140123
{
141124
"cell_type": "code",
142-
"execution_count": 3,
125+
"execution_count": null,
143126
"metadata": {},
144-
"outputs": [
145-
{
146-
"data": {
147-
"application/vnd.jupyter.widget-view+json": {
148-
"model_id": "d1384e6efce843ca873e1a2f8571cc74",
149-
"version_major": 2,
150-
"version_minor": 0
151-
},
152-
"text/plain": [
153-
"MyApp(children=(FloatSlider(value=-30.0, continuous_update=False, description='A', max=40.0, min=-40.0, step=1…"
154-
]
155-
},
156-
"metadata": {},
157-
"output_type": "display_data"
158-
}
159-
],
127+
"outputs": [],
160128
"source": [
161-
"plot_layer_potentials_app()"
129+
"ResLayer_app()"
162130
]
163131
},
164132
{
@@ -198,24 +166,9 @@
198166
},
199167
{
200168
"cell_type": "code",
201-
"execution_count": 4,
169+
"execution_count": null,
202170
"metadata": {},
203-
"outputs": [
204-
{
205-
"data": {
206-
"application/vnd.jupyter.widget-view+json": {
207-
"model_id": "d645ed44e78b485a93927aa419e818e8",
208-
"version_major": 2,
209-
"version_minor": 0
210-
},
211-
"text/plain": [
212-
"MyApp(children=(IntSlider(value=0, description='i', max=17), Output()), layout=Layout(align_items='stretch', d…"
213-
]
214-
},
215-
"metadata": {},
216-
"output_type": "display_data"
217-
}
218-
],
171+
"outputs": [],
219172
"source": [
220173
"MidpointPseudoSectionWidget()"
221174
]
@@ -242,26 +195,9 @@
242195
},
243196
{
244197
"cell_type": "code",
245-
"execution_count": 5,
246-
"metadata": {
247-
"scrolled": false
248-
},
249-
"outputs": [
250-
{
251-
"data": {
252-
"application/vnd.jupyter.widget-view+json": {
253-
"model_id": "6a25181275ec473a99eb1e64715b50d2",
254-
"version_major": 2,
255-
"version_minor": 0
256-
},
257-
"text/plain": [
258-
"interactive(children=(BoundedFloatText(value=1000.0, description='$\\\\rho_1$', max=1000.0, min=10.0), BoundedFl…"
259-
]
260-
},
261-
"metadata": {},
262-
"output_type": "display_data"
263-
}
264-
],
198+
"execution_count": null,
199+
"metadata": {},
200+
"outputs": [],
265201
"source": [
266202
"DC2DPseudoWidget()"
267203
]
@@ -296,24 +232,9 @@
296232
},
297233
{
298234
"cell_type": "code",
299-
"execution_count": 6,
235+
"execution_count": null,
300236
"metadata": {},
301-
"outputs": [
302-
{
303-
"data": {
304-
"application/vnd.jupyter.widget-view+json": {
305-
"model_id": "79e1c6477a08484db56eb9cd47a1916a",
306-
"version_major": 2,
307-
"version_minor": 0
308-
},
309-
"text/plain": [
310-
"MyApp(children=(BoundedFloatText(value=1000.0, description='$\\\\rho_1$', max=1000.0, min=10.0), BoundedFloatTex…"
311-
]
312-
},
313-
"metadata": {},
314-
"output_type": "display_data"
315-
}
316-
],
237+
"outputs": [],
317238
"source": [
318239
"DC2DfwdWidget()"
319240
]
@@ -343,7 +264,7 @@
343264
"name": "python",
344265
"nbconvert_exporter": "python",
345266
"pygments_lexer": "ipython3",
346-
"version": "3.9.13"
267+
"version": "3.11.10"
347268
},
348269
"widgets": {
349270
"state": {
@@ -366,5 +287,5 @@
366287
}
367288
},
368289
"nbformat": 4,
369-
"nbformat_minor": 1
290+
"nbformat_minor": 4
370291
}

0 commit comments

Comments
 (0)