Skip to content

Commit

Permalink
Update notebooks for SimPEG v0.23.0 (#30)
Browse files Browse the repository at this point in the history
Collect changes required to update the tutorials to work with SimPEG
v0.23.0. Use `choclo` as engine in gravity and magnetic simulations, and
add it to the `environment.yml`. Replace `indActive` for `active_cells`
in potential field simulations. Replace `Update_IRLS` for `UpdateIRLS`.
Use `diagonal_balance=True` when defining a `TreeMesh`. Rely on the
default solver capabilities. Bump SimPEG version in landing page and in
the `environment.yml`. Use Numpy's RNG instead of global seeds.

Include changes from #29, #31, #32, #33.

Fixes #28
  • Loading branch information
santisoler authored Nov 20, 2024
1 parent 3865bac commit c4d27dc
Show file tree
Hide file tree
Showing 33 changed files with 6,138 additions and 4,445 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ notebooks/**/*.txt
notebooks/**/*.obs
notebooks/**/*.xyz
notebooks/**/*.gz
notebooks/**/*.mod
notebooks/**/*.ubc

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
Expand Down
6 changes: 4 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ dependencies:
- jupyter
- jupyterlab-myst
- nbconvert
- simpeg==0.22.*
- discretize==0.10.*
- simpeg==0.23.*
- discretize==0.11.*
- choclo==0.3.*
- scikit-learn
- pymatsolver
# Code quality
- nbqa
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SimPEG user tutorials is the place for those who have [installed SimPEG](https:/


:::{caution} Caution
These user tutorials are meant to be run with SimPEG v0.22. Please, make sure
you have this version installed.
These user tutorials are meant to be run with **SimPEG v0.23**.
Please, make sure you have this version installed.
:::


Expand Down
203 changes: 102 additions & 101 deletions notebooks/03-gravity/fwd_gravity_anomaly_3d.ipynb

Large diffs are not rendered by default.

210 changes: 109 additions & 101 deletions notebooks/03-gravity/fwd_gravity_gradiometry_3d.ipynb

Large diffs are not rendered by default.

490 changes: 245 additions & 245 deletions notebooks/03-gravity/inv_gravity_anomaly_3d.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit c4d27dc

Please sign in to comment.