Skip to content

Commit

Permalink
Reduced step for nonparametric sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Simionato committed Jan 23, 2025
1 parent 6879c7b commit 9dd2e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openquake/hazardlib/source/non_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def iter_ruptures(self, **kwargs):
rupture.NonParametricProbabilisticRupture`.
"""
step = kwargs.get('step', 1)
for rup, pmf in self.data[::step**2]:
for rup, pmf in self.data[::step*2]:
yield NonParametricProbabilisticRupture(
rup.mag, rup.rake, self.tectonic_region_type,
rup.hypocenter, rup.surface, pmf,
Expand Down

0 comments on commit 9dd2e72

Please sign in to comment.