ref: 5039244920e9083f3bf1508ad8960cc24514cb83
parent: c60e048f3aba852710b9763a6fb24adad2017f40
author: Paul Brossier <piem@piem.org>
date: Fri Jun 21 10:03:14 EDT 2019
[py] relax precision for 32bit systems
--- a/python/tests/test_hztomel.py
+++ b/python/tests/test_hztomel.py
@@ -19,8 +19,8 @@
assert_almost_equal(hztomel(1000. / 3), 5.)
assert_equal(hztomel(200.), 3.)
assert_almost_equal(hztomel(1000.), 15)
- assert_almost_equal(hztomel(6400), 42)
- assert_almost_equal(hztomel(40960), 69)
+ assert_almost_equal(hztomel(6400), 42, decimal=5)
+ assert_almost_equal(hztomel(40960), 69, decimal=5)
for m in np.linspace(0, 1000, 100):
assert_almost_equal(hztomel(meltohz(m)) - m, 0, decimal=3)