-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding test for full mfd workflow to ensure with same random seed res…
…ults are the same
- Loading branch information
Kendra Johnson
authored and
Kendra Johnson
committed
Apr 3, 2024
1 parent
e8c19b4
commit 27ca787
Showing
9 changed files
with
123 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name = "CAM test" | ||
mmin = 4.0 | ||
bin_width = 0.2 | ||
rupture_mesh_spacing = 2.5 | ||
kernel_maximum_distance = 120.0 | ||
kernel_smoothing = [ [ 0.8, 20.0,], [ 0.15, 40.0,], [ 0.05, 80.0,],] | ||
source_prefix = "L01" | ||
|
||
[completeness] | ||
mags = [] | ||
years = [] | ||
completeness_ref = [ [ 1980.0, 4.0,], [ 1964.0, 5.0,], [ 1904.0, 7.0,],] | ||
deviation = 1.7 | ||
ref_mag = 2.0 | ||
ref_upp_mag = 10.0 | ||
min_mag_compl = 4.0 | ||
bmin = 0.7 | ||
bmax = 1.3 | ||
flexible = true | ||
num_steps = 2 | ||
optimization_criterion = "optimize" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[main] | ||
|
||
catalogue = './data2/sub_cat.pkl' | ||
tr_file = './data2/classified_test.hdf5' | ||
|
||
create_subcatalogues = 'true' | ||
catalogue_add_defaults = 'true' | ||
|
||
[method1] | ||
name = 'GardnerKnopoffType1' | ||
params = {'time_distance_window' = 'UhrhammerWindow', 'fs_time_prop' = 0.1} | ||
label = 'UH' | ||
|
||
[case1] | ||
regions = ['crustal', 'intA'] | ||
label = 'int_cru' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[main] | ||
catalogue_filename = './data2/sub_cat.pkl' | ||
output_directory = 'test' | ||
|
||
[catalogues] | ||
number = 3 | ||
sample_type = 'random' | ||
create_catalogues = true | ||
|
||
[decluster] | ||
decluster_catalogues = true | ||
decluster_settings = 'config/dec.toml' | ||
|
||
[completeness] | ||
generate_completeness = true | ||
completeness_settings = 'config/compl.toml' | ||
|
||
[mfds] | ||
create_mfds = true | ||
labels = ['intA','crustal'] | ||
|
||
[plot] | ||
make_plots = true |
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
openquake/mbt/tests/tools/mfd_sample/expected2/mfd-results.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
,label,a-values,b-values | ||
0,intA-center,3.4221566716867344,0.8477886165624219 | ||
1,intA-low,3.3341265324448983,0.8035538508320615 | ||
2,intA-high,3.5101868109285705,0.8920233822927822 | ||
3,crustal-center,3.350288725907407,0.8778145185036605 | ||
4,crustal-low,3.263790223525028,0.8485030837041351 | ||
5,crustal-high,3.436787228289786,0.907125953303186 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters