Skip to content

Commit

Permalink
Merge pull request #10024 from gem/coeffs
Browse files Browse the repository at this point in the history
Removing CampbellBozorgnia classes by updating the CoeffsTable instead
  • Loading branch information
micheles authored Oct 5, 2024
2 parents b44dd5c + 87ba002 commit 2a5bc68
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 113 deletions.
12 changes: 8 additions & 4 deletions openquake/hazardlib/gsim/bozorgnia_campbell_2016_vh.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ class BozorgniaCampbell2016HighQVH(BozorgniaCampbell2016VH):
low attenuation (high quality factor, Q) (e.g. eastern China)
"""
VGMPE = bozorgnia_campbell_2016.BozorgniaCampbell2016(sgn=+1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014HighQ()
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014(
coeffs=campbell_bozorgnia_2014.coeffs_high)


class BozorgniaCampbell2016LowQVH(BozorgniaCampbell2016VH):
Expand All @@ -185,7 +186,8 @@ class BozorgniaCampbell2016LowQVH(BozorgniaCampbell2016VH):
high attenuation (low quality factor, Q) (e.g. Japan and Italy)
"""
VGMPE = bozorgnia_campbell_2016.BozorgniaCampbell2016(sgn=-1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014LowQ()
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014(
coeffs=campbell_bozorgnia_2014.coeffs_low)


class BozorgniaCampbell2016AveQJapanSiteVH(BozorgniaCampbell2016VH):
Expand Down Expand Up @@ -215,7 +217,8 @@ class BozorgniaCampbell2016HighQJapanSiteVH(
low attenuation (high quality factor, Q)
"""
VGMPE = bozorgnia_campbell_2016.BozorgniaCampbell2016(SJ=1, sgn=+1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014HighQ(SJ=1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014(
coeffs=campbell_bozorgnia_2014.coeffs_high, SJ=1)


class BozorgniaCampbell2016LowQJapanSiteVH(
Expand All @@ -231,4 +234,5 @@ class BozorgniaCampbell2016LowQJapanSiteVH(
high attenuation (low quality factor, Q)
"""
VGMPE = bozorgnia_campbell_2016.BozorgniaCampbell2016(SJ=1, sgn=-1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014LowQ(SJ=1)
HGMPE = campbell_bozorgnia_2014.CampbellBozorgnia2014(
coeffs=campbell_bozorgnia_2014.coeffs_low, SJ=1)
Loading

0 comments on commit 2a5bc68

Please sign in to comment.