From 0c1227561f3d4e53ac843484083ed143b0fc4915 Mon Sep 17 00:00:00 2001 From: Santiago Soler Date: Thu, 2 Nov 2023 16:24:13 -0700 Subject: [PATCH] Replace deprecated method in discretize for new one Replace the deprecated `TensorMesh.getInterpolationMat` method for `TensorMesh.get_interpolation_matrix`. --- geoscilabs/dcip/DCLayers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geoscilabs/dcip/DCLayers.py b/geoscilabs/dcip/DCLayers.py index 54463b4..7ed4ab7 100644 --- a/geoscilabs/dcip/DCLayers.py +++ b/geoscilabs/dcip/DCLayers.py @@ -305,7 +305,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"): # clabel = 'Potential (V)' elif imgplt == "Potential": - Pc = mesh.getInterpolationMat(pltgrid, "CC") + Pc = mesh.get_interpolation_matrix(pltgrid, "CC") V = solve_2D_potentials(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0]) @@ -341,7 +341,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"): elif imgplt == "E": - Pc = mesh.getInterpolationMat(pltgrid, "CC") + Pc = mesh.get_interpolation_matrix(pltgrid, "CC") ex, ez, V = solve_2D_E(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0]) @@ -388,7 +388,7 @@ def plot_layer_potentials(rho1, rho2, h, A, B, M, N, imgplt="Model"): elif imgplt == "J": - Pc = mesh.getInterpolationMat(pltgrid, "CC") + Pc = mesh.get_interpolation_matrix(pltgrid, "CC") Jx, Jz, V = solve_2D_J(rho1, rho2, h, np.r_[A, 0.0, 0.0], np.r_[B, 0.0, 0.0])