Skip to content

Commit

Permalink
Merge pull request #14 from cseptesting/12-qa-tests-flat-file-catalog…
Browse files Browse the repository at this point in the history
…-forecast-and-etas-src

QA tests: Only CatalogForecast flat-files, and fix ETAS src code interface with floatcsep
  • Loading branch information
pabloitu authored Aug 2, 2024
2 parents 542758c + 5f59334 commit 48453c5
Show file tree
Hide file tree
Showing 46 changed files with 22,140 additions and 655 deletions.
2,501 changes: 2,501 additions & 0 deletions examples/case_f/catalog.json

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions examples/case_f/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: case_f
name: case_g

time_config:
start_date: 2012-5-23T00:00:00
end_date: 2012-6-23T00:00:00
horizon: 7days
start_date: 2016-11-14T00:00:00
end_date: 2016-11-21T00:00:00
horizon: 1day
exp_class: td

region_config:
region: italy_csep_region
mag_min: 3.5
region: nz_csep_region
mag_min: 3.6
mag_max: 8.0
mag_bin: 0.5
mag_bin: 0.1
depth_min: 0
depth_max: 70
depth_max: 30

force_rerun: True
catalog: catalog.csv
catalog: catalog.json
model_config: models.yml
test_config: tests.yml
8,894 changes: 8,894 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-14_2016-11-15.csv

Large diffs are not rendered by default.

3,059 changes: 3,059 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-15_2016-11-16.csv

Large diffs are not rendered by default.

1,993 changes: 1,993 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-16_2016-11-17.csv

Large diffs are not rendered by default.

1,395 changes: 1,395 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-17_2016-11-18.csv

Large diffs are not rendered by default.

1,221 changes: 1,221 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-18_2016-11-19.csv

Large diffs are not rendered by default.

879 changes: 879 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-19_2016-11-20.csv

Large diffs are not rendered by default.

725 changes: 725 additions & 0 deletions examples/case_f/etas/forecasts/etas_2016-11-20_2016-11-21.csv

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions examples/case_f/models.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- pymock:
path: pymock
func: python run.py
func_kwargs:
n_sims: 100
mag_min: 3.5
build: pip
- etas:
path: etas/
class: td
n_sims: 100

7 changes: 6 additions & 1 deletion examples/case_f/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
- plot_consistency_test:
plot_kwargs:
one_sided_lower: True

- Catalog_S-test:
func: catalog_evaluations.spatial_test
plot_func:
- plot_consistency_test:
plot_kwargs:
one_sided_lower: True



9 changes: 5 additions & 4 deletions examples/case_g/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: case_f
name: case_g

time_config:
start_date: 2016-8-25T00:00:00
end_date: 2016-8-27T00:00:00
horizon: 1days
start_date: 2012-5-23T00:00:00
end_date: 2012-6-23T00:00:00
horizon: 7days
exp_class: td

region_config:
Expand All @@ -14,6 +14,7 @@ region_config:
depth_min: 0
depth_max: 70

force_rerun: True
catalog: catalog.csv
model_config: models.yml
test_config: tests.yml
29 changes: 4 additions & 25 deletions examples/case_g/models.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
- etas:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/vetas.git
args_file: input/args.json
path: models/etas
func: etas-run
func_kwargs:
n_sims: 1000
mc: 3.5
build: pip
- Poisson Mock:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/pymock.git
path: models/pymock_poisson
func: pymock
prefix: pymock
func_kwargs:
n_sims: 1000
mag_min: 3.5
build: pip
- Negbinom Mock:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/pymock.git
path: models/pymock_nb
- pymock:
path: pymock
func: pymock
func_kwargs:
n_sims: 1000
n_sims: 100
mag_min: 3.5
distribution: negbinom
build: pip
prefix: pymock
build: venv
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions examples/case_g/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- Catalog_N-test:
func: catalog_evaluations.number_test
func_kwargs:
verbose: False
plot_func:
- plot_number_test:
plot_args:
Expand Down
File renamed without changes.
20 changes: 20 additions & 0 deletions examples/case_h/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: case_f

time_config:
start_date: 2016-8-25T00:00:00
end_date: 2016-8-26T00:00:00
horizon: 1days
exp_class: td

region_config:
region: italy_csep_region
mag_min: 3.5
mag_max: 8.0
mag_bin: 0.5
depth_min: 0
depth_max: 70

force_rerun: True
catalog: catalog.csv
model_config: models.yml
test_config: tests.yml
32 changes: 32 additions & 0 deletions examples/case_h/models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
- etas:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/vetas.git
repo_hash: v3.2
args_file: input/args.json
path: models/etas
func: etas-run
func_kwargs:
n_sims: 100
mc: 3.5
seed: 23
- Poisson Mock:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/pymock.git
repo_hash: v0.1
path: models/pymock_poisson
func: pymock
prefix: pymock
func_kwargs:
n_sims: 100
mag_min: 3.5
seed: 23
- Negbinom Mock:
giturl: https://git.gfz-potsdam.de/csep/it_experiment/models/pymock.git
repo_hash: v0.1
path: models/pymock_nb
func: pymock
func_kwargs:
n_sims: 100
mag_min: 3.5
apply_mc_to_lambda: True
distribution: negbinom
seed: 23
prefix: pymock
16 changes: 16 additions & 0 deletions examples/case_h/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- Catalog_N-test:
func: catalog_evaluations.number_test
func_kwargs:
verbose: False
plot_func:
- plot_number_test:
plot_args:
title: Number consistency test
bins: 30
- plot_consistency_test:
plot_args:
title: Number consistency test




Loading

0 comments on commit 48453c5

Please sign in to comment.