Skip to content

Commit

Permalink
Merge pull request #10300 from gem/k20_req_sites
Browse files Browse the repository at this point in the history
fix k20 NZL variant req site param bug
  • Loading branch information
micheles authored Jan 31, 2025
2 parents a27fa6e + bf2f329 commit 410a3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openquake/hazardlib/gsim/kuehn_2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def __init__(self, region="GLO", m_b=None, m9_basin_term=None,
elif self.region in ("NZL", "TWN"):
# If region is NZL or TWN then the GMPE needs Z1.0
self.REQUIRES_SITES_PARAMETERS |= {"z1pt0"}

self.m9_basin_term = m9_basin_term
self.usgs_basin_scaling = usgs_basin_scaling
# USGS basin scaling and M9 basin term is only
Expand Down
3 changes: 3 additions & 0 deletions openquake/hazardlib/gsim/nz22/nz_nshm2022_kuehn_2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ def __init__(
super().__init__(region=region, m_b=m_b, sigma_mu_epsilon=sigma_mu_epsilon)
self.modified_sigma = modified_sigma

# Add backarc to req sites
self.REQUIRES_SITES_PARAMETERS |= {"backarc"}

# reset override of REQUIRES_SITES_PARAMETERS done by super
if self.region in ("NZL"):
self.REQUIRES_SITES_PARAMETERS = \
Expand Down

0 comments on commit 410a3c1

Please sign in to comment.