Skip to content

Commit

Permalink
fix: add noise to test regional eq sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed May 7, 2024
1 parent f7ea9c8 commit 350baca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_regional.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import verde as vd
import xarray as xr

from invert4geom import regional
from invert4geom import regional, synthetic

# %%

Expand Down Expand Up @@ -122,6 +122,14 @@ def test_regional_eq_sources():

grav_df = dummy_grid().to_dataframe().reset_index()

# add noise
grav_df["misfit"], _ = synthetic.contaminate(
grav_df["misfit"],
stddev=0.2,
percent=True,
seed=0,
)

df = regional.regional_eq_sources(
source_depth=100e3,
grav_df=grav_df,
Expand Down

0 comments on commit 350baca

Please sign in to comment.