Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Aug 16, 2023
1 parent c8a9fb1 commit e490fe2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file modified .github/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions .github/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
model.configure(
optimizer="cpso",
misfit="rmse",
density=lambda vp: 2.0,
density=density,
optimizer_args={
"popsize": 10,
"maxiter": 100,
Expand All @@ -56,7 +56,7 @@
# Run inversion
# See stochopy's documentation for optimizer options <https://keurfonluu.github.io/stochopy/>
res = model.invert(curves)
res = res.threshold(0.1)
res = res.threshold(0.02)

# Plot results
fig, ax = plt.subplots(1, 3, figsize=(15, 6))
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ Expected output:
.. code-block::
--------------------------------------------------------------------------------
Best model out of 1000 models (1 run)
Best model out of 501 models (1 run)
Velocity model Model parameters
---------------------------------------- ------------------------------
d vp vs rho d vs nu
[km] [km/s] [km/s] [g/cm3] [km] [km/s] [-]
---------------------------------------- ------------------------------
0.0296 0.5033 0.2055 2.0000 0.0296 0.2055 0.4000
1.0000 1.8191 1.0080 2.0000 - 1.0080 0.2785
0.0298 0.5033 0.2055 2.0000 0.0298 0.2055 0.4000
1.0000 2.0586 0.9935 2.0000 - 0.9935 0.3482
---------------------------------------- ------------------------------
Number of layers: 2
Number of parameters: 5
Best model misfit: 0.0153
Best model misfit: 0.0038
--------------------------------------------------------------------------------
Contributing
Expand Down

0 comments on commit e490fe2

Please sign in to comment.