Skip to content

Commit

Permalink
Better TOML syntax [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Oct 5, 2024
1 parent 9154d7c commit 87ba002
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions openquake/hazardlib/gsim/campbell_bozorgnia_2014.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,47 +518,47 @@ def compute(self, ctx: np.recarray, imts, mean, sig, tau, phi):
""")

coeffs_high = CoeffsTable.fromtoml('''
["SA(0.01)"]\nDc20 = 0.0036
["SA(0.02)"]\nDc20 = 0.0036
["SA(0.03)"]\nDc20 = 0.0037
["SA(0.05)"]\nDc20 = 0.0040
["SA(0.075)"]\nDc20 = 0.0039
["SA(0.1)"]\nDc20 = 0.0042
["SA(0.15)"]\nDc20 = 0.0042
["SA(0.2)"]\nDc20 = 0.0041
["SA(0.25)"]\nDc20 = 0.0036
["SA(0.3)"]\nDc20 = 0.0031
["SA(0.4)"]\nDc20 = 0.0028
["SA(0.5)"]\nDc20 = 0.0025
["SA(0.75)"]\nDc20 = 0.0016
["SA(1.0)"]\nDc20 = 0.0006
[PGA]\nDc20 = 0.0036
[PGV]\nDc20 = 0.0017
[CAV]\nDc20 = 0.0027
[IA]\nDc20 = 0.0064
"SA(0.01)".Dc20 = 0.0036
"SA(0.02)".Dc20 = 0.0036
"SA(0.03)".Dc20 = 0.0037
"SA(0.05)".Dc20 = 0.0040
"SA(0.075)".Dc20 = 0.0039
"SA(0.1)".Dc20 = 0.0042
"SA(0.15)".Dc20 = 0.0042
"SA(0.2)".Dc20 = 0.0041
"SA(0.25)".Dc20 = 0.0036
"SA(0.3)".Dc20 = 0.0031
"SA(0.4)".Dc20 = 0.0028
"SA(0.5)".Dc20 = 0.0025
"SA(0.75)".Dc20 = 0.0016
"SA(1.0)".Dc20 = 0.0006
PGA.Dc20 = 0.0036
PGV.Dc20 = 0.0017
CAV.Dc20 = 0.0027
IA.Dc20 = 0.0064
''').to_dict()

coeffs_low = CoeffsTable.fromtoml('''
["SA(0.01)"]\nDc20 = -0.0035
["SA(0.02)"]\nDc20 = -0.0035
["SA(0.03)"]\nDc20 = -0.0034
["SA(0.05)"]\nDc20 = -0.0037
["SA(0.075)"]\nDc20 = -0.0037
["SA(0.1)"]\nDc20 = -0.0034
["SA(0.15)"]\nDc20 = -0.0030
["SA(0.2)"]\nDc20 = -0.0031
["SA(0.25)"]\nDc20 = -0.0033
["SA(0.3)"]\nDc20 = -0.0035
["SA(0.4)"]\nDc20 = -0.0034
["SA(0.5)"]\nDc20 = -0.0034
["SA(0.75)"]\nDc20 = -0.0032
["SA(1.0)"]\nDc20 = -0.0030
["SA(1.5)"]\nDc20 = -0.0019
["SA(2.0)"]\nDc20 = -0.0005
[PGA]\nDc20 = -0.0035
[PGV]\nDc20 = -0.0006
[CAV]\nDc20 = -0.0024
[IA]\nDc20 = -0.0051
"SA(0.01)".Dc20 = -0.0035
"SA(0.02)".Dc20 = -0.0035
"SA(0.03)".Dc20 = -0.0034
"SA(0.05)".Dc20 = -0.0037
"SA(0.075)".Dc20 = -0.0037
"SA(0.1)".Dc20 = -0.0034
"SA(0.15)".Dc20 = -0.0030
"SA(0.2)".Dc20 = -0.0031
"SA(0.25)".Dc20 = -0.0033
"SA(0.3)".Dc20 = -0.0035
"SA(0.4)".Dc20 = -0.0034
"SA(0.5)".Dc20 = -0.0034
"SA(0.75)".Dc20 = -0.0032
"SA(1.0)".Dc20 = -0.0030
"SA(1.5)".Dc20 = -0.0019
"SA(2.0)".Dc20 = -0.0005
PGA.Dc20 = -0.0035
PGV.Dc20 = -0.0006
CAV.Dc20 = -0.0024
IA.Dc20 = -0.0051
''').to_dict()


Expand Down

0 comments on commit 87ba002

Please sign in to comment.