diff --git a/HISTORY.rst b/HISTORY.rst index 1b4ce8d..2798ac1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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 diff --git a/setup.py b/setup.py index c604338..92503d7 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tests/test_bayless_abrahamson_2019.py b/tests/test_bayless_abrahamson_2019.py index 0d60d4d..30103a3 100644 --- a/tests/test_bayless_abrahamson_2019.py +++ b/tests/test_bayless_abrahamson_2019.py @@ -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)