Skip to content

Commit

Permalink
Enlarged the trt in source_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Sep 24, 2024
1 parent 13412fb commit 8d9dd43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openquake/calculators/preclassical.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def store_tiles(dstore, csm, sitecol, cmakers):
for cm, tgets, blocks, splits in quartets],
[('grp_id', U16), ('gsims', U16), ('tiles', U16), ('blocks', U16),
('splits', U16), ('size_mb', F32), ('weight', F32),
('codes', '<S8'), ('trt', '<S20')])
('codes', '<S8'), ('trt', '<S32')])

# determine light groups and tiling
light, = numpy.where(data['blocks'] == 1)
Expand Down
2 changes: 2 additions & 0 deletions openquake/hazardlib/tests/gsim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def check(self, *filenames, max_discrep_percentage,
if sdt in gsim.DEFINED_FOR_STANDARD_DEVIATION_TYPES:
out_types.append(sdt.upper().replace(' ', '_') + '_STDDEV')
cmaker, df = read_cmaker_df(gsim, fnames)
if len(df.result_type.unique()) > 1:
breakpoint()
if truncation_level != 99.:
cmaker.truncation_level = truncation_level
for ctx in gen_ctxs(df):
Expand Down
2 changes: 1 addition & 1 deletion utils/build_vtable
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sys
import numpy as np
import pandas
from itertools import product
from openquake.hazardlib import imt, valid, contexts
from openquake.hazardlib import valid, contexts

RES_INDEX = dict(MEAN=0, TOTAL_STDDEV=1,
INTER_EVENT_STDDEV=2, INTRA_EVENT_STDDEV=3)
Expand Down

0 comments on commit 8d9dd43

Please sign in to comment.