Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in simpeg 1D inversion recipe - plot_response function #70

Open
RyanOlsonDias opened this issue Nov 22, 2024 · 0 comments
Open

Error in simpeg 1D inversion recipe - plot_response function #70

RyanOlsonDias opened this issue Nov 22, 2024 · 0 comments

Comments

@RyanOlsonDias
Copy link

In the simpeg 1D inversion recipe. the plot_response function does not plot the 1D step model properly

Current Behavior

SimPEG defines 1D model's in thicknesses from bottom to top. The current plot function reverses the thicknesses while computing the cumsum for depth, but does not reverse the corresponding model values

ax_model.step(
(1.0 / (np.exp(m))),
self._plot_z,
color="k",
**{"linestyle": "-"},
)

Possible Solution

ax_model.step(
(1.0 / (np.exp(m[::-1]))),
self._plot_z,
color="k",
**{"linestyle": "-"},
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant