time poetry run python -m toshi_hazard_haste.cli build -c demo/config.toml -w 1
# cli command configuration example
hazard_model_ids = ["SLT_TAG_FINAL"]
vs30s = [ 400 ]
imts = ["PGA", "SA(0.5)", "SA(1.0)", "SA(1.5)" ] # SANJAY for gridded
site_list = "NZ_0_2_NB_1_1" #0.2 degree NZ grid
poes = [0.1, 0.02] #, 0.63, 0.86]
aggs = ["mean", "0.8", "0.9"]
sort_key_first_val -38.400~174.800:400:PGA:0.9:SLT_TAG_FINAL
condition_expr ((((nloc_001 IN ({'S': '-38.400~174.800'}) AND vs30 IN ({'N': '400'})) AND imt IN ({'S': 'PGA'})) AND agg IN ({'S': '0.9'})) AND hazard_model_id IN ({'S': 'SLT_TAG_FINAL'}))
get_hazard_rlz_curves_v3: qry <pynamodb.pagination.ResultIterator object at 0x7fc3d28ad190>
Process GriddedHAzardWorkerMP-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/GNSDATA/API/toshi-hazard-haste/toshi_hazard_haste/gridded_hazard/gridded_hazard.py", line 61, in run
for ghaz in process_gridded_hazard(*nt):
File "/GNSDATA/API/toshi-hazard-haste/toshi_hazard_haste/gridded_hazard/gridded_hazard.py", line 27, in process_gridded_hazard
grid_poes[index] = compute_hazard_at_poe(poe_lvl, accel_levels, poe_values, INVESTIGATION_TIME)
File "/GNSDATA/API/toshi-hazard-haste/toshi_hazard_haste/gridded_hazard/gridded_poe.py", line 24, in compute_hazard_at_poe
assert np.all(np.diff(xp) >= 0) # raise is x_accel_levels not increasing or at least not dropping,
AssertionError