Skip to content

Commit

Permalink
Hamiltonian monte carlo (HMC) sampling is available in MTUQ through p…
Browse files Browse the repository at this point in the history
…ackage SeisHMC.
  • Loading branch information
Liang-Ding committed Jul 19, 2023
1 parent ee4ac80 commit da73f4a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Binary file removed data/examples/SPECFEM3D.tgz
Binary file not shown.
Binary file added data/examples/SPECFEM3D_SGT.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/examples/unpack.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd $(dirname ${BASH_SOURCE[0]})
wd=$PWD

for filename in \
20090407201255351.tgz SPECFEM3D.tgz SPECFEM3D_SAC.tgz;
20090407201255351.tgz SPECFEM3D_SGT.tgz SPECFEM3D_SAC.tgz;
do
cd $wd
cd $(dirname $filename)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_HMC_DoubleCouple.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
# from a regional seismic array
#

path_data = fullpath('data/examples/SPECFEM3D/data/*.[zrt]')
path_greens = fullpath('data/examples/SPECFEM3D/greens/socal3D')
path_weights= fullpath('data/examples/SPECFEM3D/weights.dat')
path_data = fullpath('data/examples/SPECFEM3D_SGT/data/*.[zrt]')
path_greens = fullpath('data/examples/SPECFEM3D_SGT/greens/socal3D')
path_weights= fullpath('data/examples/SPECFEM3D_SGT/weights.dat')
event_id = 'evt11071294'
model = 'socal3D'
taup_model = 'ak135'

# output folder
saving_dir = '../dl_test/'
saving_dir = './'

#
# Body and surface wave measurements will be made separately
Expand Down
8 changes: 4 additions & 4 deletions tests/test_HMC_FullMomentTensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
# from a regional seismic array
#

path_data = fullpath('data/examples/SPECFEM3D/data/*.[zrt]')
path_greens = fullpath('data/examples/SPECFEM3D/greens/socal3D')
path_weights= fullpath('data/examples/SPECFEM3D/weights.dat')
path_data = fullpath('data/examples/SPECFEM3D_SGT/data/*.[zrt]')
path_greens = fullpath('data/examples/SPECFEM3D_SGT/greens/socal3D')
path_weights= fullpath('data/examples/SPECFEM3D_SGT/weights.dat')
event_id = 'evt11071294'
model = 'socal3D'
taup_model = 'ak135'

# output folder
saving_dir = '../dl_test/'
saving_dir = './'


#
Expand Down
6 changes: 3 additions & 3 deletions tests/test_greens_SPECFEM3D_SGT.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
run_figures = (not args.no_figures)


path_greens = fullpath('data/examples/SPECFEM3D/greens/socal3D')
path_data = fullpath('data/examples/SPECFEM3D/data/*.[zrt]')
path_weights= fullpath('data/examples/SPECFEM3D/weights.dat')
path_greens = fullpath('data/examples/SPECFEM3D_SGT/greens/socal3D')
path_data = fullpath('data/examples/SPECFEM3D_SGT/data/*.[zrt]')
path_weights= fullpath('data/examples/SPECFEM3D_SGT/weights.dat')
event_id = 'evt11071294'
model = 'socal3D'
taup_model = 'ak135'
Expand Down
4 changes: 2 additions & 2 deletions tests/test_greens_SeisCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@


path_greens = fullpath('data/greens_tensor/seiscloud/')
path_data = fullpath('data/examples/SPECFEM3D/data/*.[zrt]')
path_weights= fullpath('data/examples/SPECFEM3D/weights.dat')
path_data = fullpath('data/examples/SPECFEM3D_SGT/data/*.[zrt]')
path_weights= fullpath('data/examples/SPECFEM3D_SGT/weights.dat')
event_id = 'evt11071294'
model = 'socal3D'
taup_model = 'ak135'
Expand Down

0 comments on commit da73f4a

Please sign in to comment.