Skip to content

Commit

Permalink
Changed ordering of g-indices
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Jun 1, 2023
1 parent 0210799 commit 6f01dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openquake/hazardlib/logictree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ def init(self):
self.gdict = {}
g = 0
rlzs_by_g = []
for smr in range(self.Re):
for trti, trt in enumerate(self.trts):
for trti, trt in enumerate(self.trts):
for smr in range(self.Re):
trt_smr = trti * TWO24 + smr
rgb = self.get_rlzs_by_gsim(trt_smr)
self.gdict[trt_smr] = numpy.arange(g, g + len(rgb))
Expand Down

0 comments on commit 6f01dc0

Please sign in to comment.