Skip to content

Commit

Permalink
examples: added new case_f, which includes a series of flat file, tim…
Browse files Browse the repository at this point in the history
…e-dependent forecasts. Time-dependent examples with source code, were displaced to case_g and case_h

fix: now reading catalog forecasts from file, includes the option to auto-filter spatially on read.
tests: added (new) case_f and case_g (old case_f) to qa_tests. Fixed existing tests for these commit's changes
  • Loading branch information
pabloitu committed Jul 29, 2024
1 parent aac70ff commit c836683
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 31 deletions.
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
- pymock:
path: pymock
func: python run.py
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
func: pymock
func_kwargs:
n_sims: 1000
n_sims: 100
mag_min: 3.5
distribution: negbinom
build: pip
prefix: pymock
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.
19 changes: 19 additions & 0 deletions examples/case_h/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: case_f

time_config:
start_date: 2016-8-25T00:00:00
end_date: 2016-8-27T00: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

catalog: catalog.csv
model_config: models.yml
test_config: tests.yml
28 changes: 28 additions & 0 deletions examples/case_h/models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- 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
func: pymock
func_kwargs:
n_sims: 1000
mag_min: 3.5
distribution: negbinom
build: pip
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: 1
name: 1
- plot_consistency_test:
plot_kwargs:
one_sided_lower: True




0 comments on commit c836683

Please sign in to comment.