Not Running: Simulate a 1D Sounding over a Layered Earth

24 views
Skip to first unread message

Unmilon Pal

unread,
Apr 28, 2023, 1:18:09 PM4/28/23
to SimPEG
Please help me find a solution.

The code showing the problem is:
# Define a 1D mesh for plotting. Provide a maximum depth for the plot.
max_depth = 500
mesh = TensorMesh([np.r_[layer_thicknesses, max_depth - layer_thicknesses.sum()]])

# Plot the 1D model
plot_layer(model_map * model, mesh) 

Error Showing:
NotImplementedError Traceback (most recent call last) Cell In[11], line 6 3 mesh = TensorMesh([np.r_[layer_thicknesses, max_depth - layer_thicknesses.sum()]]) 5 # Plot the 1D model ----> 6 plot_layer(model_map * model, mesh) File ~\OneDrive - iitr.ac.in\Desktop\Simpeg\simpeg\SimPEG\electromagnetics\static\utils\static_utils.py:1862, in plot_layer(rho, mesh, **kwargs) 1861 def plot_layer(rho, mesh, **kwargs): -> 1862 raise NotImplementedError( 1863 "The plot_layer method has been deprecated. Please use " 1864 "plot_1d_layer_model instead. This will be removed in version" 1865 " 0.17.0 of SimPEG", 1866 ) NotImplementedError: The plot_layer method has been deprecated. Please use plot_1d_layer_model instead. This will be removed in version 0.17.0 of SimPEG
Reply all
Reply to author
Forward
0 new messages