Skip to content

ilabel feature for site-dependent gmm breaks when not all labels are present in site model #10789

@kejohnso

Description

@kejohnso

When I run job that uses the USA preliminary model and only a single site, it fails with the error printed below. Small tests suggest that this is related to the site_labels set in the job file. In my example, there are four labels (site_labels = SeattleBasin CoastalPlains LosAngeles SanFrancisco) which are indexed in the same order as 1, 2, 3, and 4, but the sites file only include a site of case 2. If I reduce the labels to only the included one (e.g. site_labels = CoastalPlains and change the site file ilabel accordingly to 1, the job completes.

While technically it's possible to run jobs, this isn't ideal because it's better to have consistent labels among various job files.

I will send example jobs privately.

File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/contexts.py", line 1901, in get_cmakers gweights = full_lt.g_weights(all_trt_smrs)[:, -1] # shape Gt File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/logictree.py", line 1164, in g_weights for rlzs in self.get_rlzs_by_gsim(trt_smrs).values(): File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/logictree.py", line 1372, in get_rlzs_by_gsim for gsim, rlzs in self._rlzs_by_gsim(t).items(): File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/logictree.py", line 1336, in _rlzs_by_gsim return self.get_rlzs_by_gsim_dic()[trt_smr] File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/logictree.py", line 1361, in get_rlzs_by_gsim_dic self._rlzs_by = _ddic(trtis, smrs, lambda smr: rlzs[slices[smr]]) File "/Users/kjohnson/GEM/oq-engine/openquake/hazardlib/logictree.py", line 1054, in _ddic rbg[rlz.gsim_rlz.value[trti]].append(rlz.ordinal)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions