Skip to content

Commit

Permalink
Incremented version.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkottke committed Jan 24, 2022
1 parent e308998 commit 5497b89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
History
=======

0.6.4 (2022-01-24)
------------------
- Added: Bayless and Abrahamson (2019)

0.6.3 (2021-12-08)
--------------------
- Fixed: error in ASK14 on a7 term
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="pygmm",
version="0.6.3",
version="0.6.4",
description="Ground motion models implemented in Python.",
long_description=readme + "\n\n" + history,
author="Albert Kottke",
Expand Down
14 changes: 0 additions & 14 deletions tests/test_bayless_abrahamson_2019.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@ def iter_scenarios():
"scenario", iter_scenarios(), ids=lambda s: f'M {s["mag"]}, Vs30 {s["v_s30"]} m/s'
)
def test_ba19(scenario):
print(scenario)
m = BA19(scenario)

if False:
fig, ax = plt.subplots()

ax.plot(scenario["freqs"], scenario["eas_median"] * TO_G, label="Reference")
ax.plot(m.freqs, m.eas, label="Calculated")

ax.legend()
ax.set(xlabel="Freq. (Hz)", xscale="log", ylabel="EAS (g-s)", yscale="log")

fig.savefig("ba19_test_{mag:.0f}_{v_s30:.0f}.png".format(**scenario), dpi=200)

assert_allclose(m.freqs, scenario["freqs"])

assert_allclose(m.eas, scenario["eas_median"] * TO_G, rtol=0.005)

0 comments on commit 5497b89

Please sign in to comment.