From 8eef8ee8db18ba4b013aa0f6559da246fa2ef8c6 Mon Sep 17 00:00:00 2001 From: dccowan Date: Sat, 27 Jan 2024 12:34:32 -0800 Subject: [PATCH 1/3] update topo hash --- live/02-inversion-dc-resistivity-2d.ipynb | 16 +++++++++++++++- notebooks/02-inversion-dc-resistivity-2d.ipynb | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/live/02-inversion-dc-resistivity-2d.ipynb b/live/02-inversion-dc-resistivity-2d.ipynb index b3f5570..ce8679a 100644 --- a/live/02-inversion-dc-resistivity-2d.ipynb +++ b/live/02-inversion-dc-resistivity-2d.ipynb @@ -170,7 +170,7 @@ "outputs": [], "source": [ "topo_url = \"https://github.com/simpeg/agrogeo24/raw/main/data/topo_2d.txt\"\n", - "topo_hash = \"1B2DAC5C46E48AB1C5606BB14621279C0A86DFD7790674A9FAAD83F3595E7030\"\n", + "topo_hash = \"09EE57B1687E9D17801993F048D7981C1F75B7D6A0F9D702927C9F6BCAA73B13\"\n", "\n", "topo_filename = pooch.retrieve(topo_url, known_hash=topo_hash)" ] @@ -226,6 +226,13 @@ "dc_data = read_dcip2d_ubc(data_filename, \"volt\", \"general\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {}, @@ -398,6 +405,13 @@ "outputs": [], "source": [] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null, diff --git a/notebooks/02-inversion-dc-resistivity-2d.ipynb b/notebooks/02-inversion-dc-resistivity-2d.ipynb index a699be3..4ab2a7b 100644 --- a/notebooks/02-inversion-dc-resistivity-2d.ipynb +++ b/notebooks/02-inversion-dc-resistivity-2d.ipynb @@ -181,7 +181,7 @@ "outputs": [], "source": [ "topo_url = \"https://github.com/simpeg/agrogeo24/raw/main/data/topo_2d.txt\"\n", - "topo_hash = \"1B2DAC5C46E48AB1C5606BB14621279C0A86DFD7790674A9FAAD83F3595E7030\"\n", + "topo_hash = \"09EE57B1687E9D17801993F048D7981C1F75B7D6A0F9D702927C9F6BCAA73B13\"\n", "\n", "topo_filename = pooch.retrieve(topo_url, known_hash=topo_hash)" ] From 1c1ed778c4d9537a319c9d939fb3ffa51df8b29c Mon Sep 17 00:00:00 2001 From: dccowan Date: Sat, 27 Jan 2024 13:02:17 -0800 Subject: [PATCH 2/3] add blank cells --- live/02-inversion-dc-resistivity-2d.ipynb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/live/02-inversion-dc-resistivity-2d.ipynb b/live/02-inversion-dc-resistivity-2d.ipynb index ce8679a..f6913d9 100644 --- a/live/02-inversion-dc-resistivity-2d.ipynb +++ b/live/02-inversion-dc-resistivity-2d.ipynb @@ -32,6 +32,13 @@ "## Step 0: Importing Modules" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null, From 976a62e6cfcaa9c25912ee171559055ec1ee6677 Mon Sep 17 00:00:00 2001 From: dccowan Date: Sat, 27 Jan 2024 13:03:20 -0800 Subject: [PATCH 3/3] run black --- live/02-inversion-dc-resistivity-2d.ipynb | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/live/02-inversion-dc-resistivity-2d.ipynb b/live/02-inversion-dc-resistivity-2d.ipynb index f6913d9..c535a2c 100644 --- a/live/02-inversion-dc-resistivity-2d.ipynb +++ b/live/02-inversion-dc-resistivity-2d.ipynb @@ -188,11 +188,11 @@ "metadata": {}, "outputs": [], "source": [ - "if survey_type == 'dipole-dipole':\n", + "if survey_type == \"dipole-dipole\":\n", " data_url = \"https://github.com/simpeg/agrogeo24/raw/main/data/dipole_dipole.obs\"\n", " data_hash = \"41ad436c6f3ce9f76aff95e4b6e50c85c851bb674e0c36ed0150b655c1534eb2\"\n", " data_filename = pooch.retrieve(data_url, known_hash=data_hash)\n", - "elif survey_type == 'pole-dipole':\n", + "elif survey_type == \"pole-dipole\":\n", " data_url = \"https://github.com/simpeg/agrogeo24/raw/main/data/pole_dipole.obs\"\n", " data_hash = \"43be6078cb782f468e1feb21e42f23f33e2c3bb1b766d4038490c071e1c9db15\"\n", " data_filename = pooch.retrieve(data_url, known_hash=data_hash)\n", @@ -1109,13 +1109,12 @@ "metadata": {}, "outputs": [], "source": [ - "if survey_type == 'dipole-dipole':\n", - "\n", + "if survey_type == \"dipole-dipole\":\n", " air_resistivity = 1e8\n", " background_resistivity = 1e2\n", " block_resistivity = 1e3\n", " basement_resistivity = 1e1\n", - " \n", + "\n", " true_resistivity = background_resistivity * np.ones(mesh.n_cells)\n", "\n", " ind_basement = mesh.cell_centers[:, -1] < -16.0\n", @@ -1127,14 +1126,13 @@ " true_resistivity[ind_block] = block_resistivity\n", "\n", " true_resistivity = true_resistivity[active_cells]\n", - " \n", - "elif survey_type == 'pole-dipole':\n", - " \n", + "\n", + "elif survey_type == \"pole-dipole\":\n", " air_resistivity = 1e8\n", " background_resistivity = 2e2\n", " aquifer_resistivity = 2e1\n", " basement_resistivity = 1e3\n", - " \n", + "\n", " true_resistivity = background_resistivity * np.ones(mesh.n_cells)\n", "\n", " ind_aquifer = mesh.cell_centers[:, -1] < -12\n",