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